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
c3a997df
Unverified
Commit
c3a997df
authored
Jan 30, 2018
by
Scott
Committed by
GitHub
Jan 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #597 from q2apro/patch-11
Fixes for MySQL 5.7 IGNORE_SPACE option
parents
347ef3cf
4543ca67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
install.php
qa-include/db/install.php
+7
-7
No files found.
qa-include/db/install.php
View file @
c3a997df
...
...
@@ -260,7 +260,7 @@ function qa_db_table_definitions()
'content'
=>
'MEDIUMTEXT'
,
// remainder of page HTML
'PRIMARY KEY (pageid)'
,
'KEY tags (tags)'
,
'UNIQUE
position
(position)'
,
'UNIQUE
`position`
(position)'
,
),
'widgets'
=>
array
(
...
...
@@ -273,7 +273,7 @@ function qa_db_table_definitions()
'tags'
=>
'VARCHAR('
.
QA_DB_MAX_WIDGET_TAGS_LENGTH
.
') CHARACTER SET ascii NOT NULL'
,
// comma-separated list of templates to display on
'title'
=>
'VARCHAR('
.
QA_DB_MAX_WIDGET_TITLE_LENGTH
.
') NOT NULL'
,
// name of widget module that should be displayed
'PRIMARY KEY (widgetid)'
,
'UNIQUE
position
(position)'
,
'UNIQUE
`position`
(position)'
,
),
'posts'
=>
array
(
...
...
@@ -870,8 +870,8 @@ function qa_db_upgrade_tables()
'qcount'
=>
$definitions
[
'categories'
][
'qcount'
],
'position'
=>
$definitions
[
'categories'
][
'position'
],
'PRIMARY KEY (categoryid)'
,
'UNIQUE
tags
(tags)'
,
'UNIQUE
position
(position)'
,
'UNIQUE
`tags`
(tags)'
,
'UNIQUE
`position`
(position)'
,
)));
// hard-code list of columns and indexes to ensure we ignore any added at a later stage
$locktablesquery
.=
', ^categories WRITE'
;
...
...
@@ -896,8 +896,8 @@ function qa_db_upgrade_tables()
'heading'
=>
$definitions
[
'pages'
][
'heading'
],
'content'
=>
$definitions
[
'pages'
][
'content'
],
'PRIMARY KEY (pageid)'
,
'UNIQUE
tags
(tags)'
,
'UNIQUE
position
(position)'
,
'UNIQUE
`tags`
(tags)'
,
'UNIQUE
`position`
(position)'
,
)));
// hard-code list of columns and indexes to ensure we ignore any added at a later stage
$locktablesquery
.=
', ^pages WRITE'
;
qa_db_upgrade_query
(
$locktablesquery
);
...
...
@@ -1037,7 +1037,7 @@ function qa_db_upgrade_tables()
'tags'
=>
$definitions
[
'widgets'
][
'tags'
],
'title'
=>
$definitions
[
'widgets'
][
'title'
],
'PRIMARY KEY (widgetid)'
,
'UNIQUE
position
(position)'
,
'UNIQUE
`position`
(position)'
,
)));
$locktablesquery
.=
', ^widgets WRITE'
;
...
...
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