Commit f262591f by Scott

Fix uservotes SQL definition

parent 5fe3f760
...@@ -414,7 +414,7 @@ function qa_db_table_definitions() ...@@ -414,7 +414,7 @@ function qa_db_table_definitions()
'voteupdated' => 'DATETIME', // time of last vote change 'voteupdated' => 'DATETIME', // time of last vote change
'UNIQUE userid (userid, postid)', 'UNIQUE userid (userid, postid)',
'KEY postid (postid)', 'KEY postid (postid)',
'KEY created (created, updated)', 'KEY voted (votecreated, voteupdated)',
'CONSTRAINT ^uservotes_ibfk_1 FOREIGN KEY (postid) REFERENCES ^posts(postid) ON DELETE CASCADE', 'CONSTRAINT ^uservotes_ibfk_1 FOREIGN KEY (postid) REFERENCES ^posts(postid) ON DELETE CASCADE',
), ),
......
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