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
74b1d711
Commit
74b1d711
authored
Oct 29, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Database upgrade to remove self-votes and self-favorites
parent
52215990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
qa-db-install.php
qa-include/qa-db-install.php
+12
-2
No files found.
qa-include/qa-db-install.php
View file @
74b1d711
...
...
@@ -29,7 +29,7 @@
exit
;
}
define
(
'QA_DB_VERSION_CURRENT'
,
5
7
);
define
(
'QA_DB_VERSION_CURRENT'
,
5
8
);
function
qa_db_user_column_type_verify
()
...
...
@@ -1422,7 +1422,17 @@
}
break
;
// Up to here: Verison 1.7 alpha 1
case
58
:
// Note: 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 ^uservotes FROM ^uservotes JOIN ^posts ON ^uservotes.postid=^posts.postid AND ^uservotes.userid=^posts.userid'
);
qa_db_upgrade_query
(
$locktablesquery
);
$keyrecalc
[
'dorecountposts'
]
=
true
;
$keyrecalc
[
'dorecalcpoints'
]
=
true
;
break
;
// Up to here: Verison 1.7 beta
}
...
...
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