Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
8e7a3bc4
Commit
8e7a3bc4
authored
Oct 02, 2015
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase post character limit
parent
69225974
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
install.php
qa-include/db/install.php
+14
-1
maxima.php
qa-include/db/maxima.php
+1
-1
No files found.
qa-include/db/install.php
View file @
8e7a3bc4
...
...
@@ -25,7 +25,7 @@
exit
;
}
define
(
'QA_DB_VERSION_CURRENT'
,
6
0
);
define
(
'QA_DB_VERSION_CURRENT'
,
6
1
);
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
}
...
...
qa-include/db/maxima.php
View file @
8e7a3bc4
...
...
@@ -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'
,
8
000
);
@
define
(
'QA_DB_MAX_CONTENT_LENGTH'
,
12
000
);
@
define
(
'QA_DB_MAX_FORMAT_LENGTH'
,
20
);
@
define
(
'QA_DB_MAX_TAGS_LENGTH'
,
800
);
@
define
(
'QA_DB_MAX_NAME_LENGTH'
,
40
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment