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
69225974
Commit
69225974
authored
Oct 02, 2015
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Database upgrade to replace category widget
parent
eef83331
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
install.php
qa-include/db/install.php
+13
-3
No files found.
qa-include/db/install.php
View file @
69225974
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
exit
;
exit
;
}
}
define
(
'QA_DB_VERSION_CURRENT'
,
59
);
define
(
'QA_DB_VERSION_CURRENT'
,
60
);
function
qa_db_user_column_type_verify
()
function
qa_db_user_column_type_verify
()
...
@@ -1421,7 +1421,7 @@
...
@@ -1421,7 +1421,7 @@
break
;
break
;
case
58
:
case
58
:
//
N
ote: need to use full table names here as aliases trigger error "Table 'x' was not locked with LOCK TABLES"
//
n
ote: need to use full table names here as aliases trigger error "Table 'x' was not locked with LOCK TABLES"
qa_db_upgrade_query
(
'DELETE FROM ^userfavorites WHERE entitytype="U" AND userid=entityid'
);
qa_db_upgrade_query
(
'DELETE FROM ^userfavorites WHERE entitytype="U" AND userid=entityid'
);
qa_db_upgrade_query
(
'DELETE ^uservotes FROM ^uservotes JOIN ^posts ON ^uservotes.postid=^posts.postid AND ^uservotes.userid=^posts.userid'
);
qa_db_upgrade_query
(
'DELETE ^uservotes FROM ^uservotes JOIN ^posts ON ^uservotes.postid=^posts.postid AND ^uservotes.userid=^posts.userid'
);
qa_db_upgrade_query
(
$locktablesquery
);
qa_db_upgrade_query
(
$locktablesquery
);
...
@@ -1433,11 +1433,21 @@
...
@@ -1433,11 +1433,21 @@
// Up to here: Verison 1.7
// Up to here: Verison 1.7
case
59
:
case
59
:
//
U
pgrade from alpha version removed
//
u
pgrade from alpha version removed
break
;
break
;
// Up to here: Verison 1.7.1
// Up to here: Verison 1.7.1
case
60
:
// add new category widget - note title must match that from qa_register_core_modules()
if
(
qa_using_categories
())
{
$widgetid
=
qa_db_widget_create
(
'Categories'
,
'all'
);
qa_db_widget_move
(
$widgetid
,
'SL'
,
1
);
}
break
;
// Up to here: Verison 1.8 alpha
}
}
qa_db_set_db_version
(
$newversion
);
qa_db_set_db_version
(
$newversion
);
...
...
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