Commit 8e7a3bc4 by Scott

Increase post character limit

parent 69225974
......@@ -25,7 +25,7 @@
exit;
}
define('QA_DB_VERSION_CURRENT', 60);
define('QA_DB_VERSION_CURRENT', 61);
function qa_db_user_column_type_verify()
......@@ -1446,6 +1446,19 @@
}
break;
case 61:
// upgrade length of qa_posts.content field to 12000
$newlength = QA_DB_MAX_CONTENT_LENGTH;
$query = 'SELECT CHARACTER_MAXIMUM_LENGTH FROM information_schema.COLUMNS WHERE table_schema=$ AND table_name=$ AND column_name="content"';
$tablename = qa_db_add_table_prefix('posts');
$oldlength = qa_db_read_one_value(qa_db_query_sub($query, QA_FINAL_MYSQL_DATABASE, $tablename));
if ($oldlength < $newlength) {
qa_db_upgrade_query('ALTER TABLE ^posts MODIFY content '.$definitions['posts']['content']);
}
break;
// Up to here: Verison 1.8 alpha
}
......
......@@ -32,7 +32,7 @@
@define('QA_DB_MAX_EMAIL_LENGTH', 80);
@define('QA_DB_MAX_HANDLE_LENGTH', 20);
@define('QA_DB_MAX_TITLE_LENGTH', 800);
@define('QA_DB_MAX_CONTENT_LENGTH', 8000);
@define('QA_DB_MAX_CONTENT_LENGTH', 12000);
@define('QA_DB_MAX_FORMAT_LENGTH', 20);
@define('QA_DB_MAX_TAGS_LENGTH', 800);
@define('QA_DB_MAX_NAME_LENGTH', 40);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment