mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fix error upgrading from 1.0.0b2.r2 that as far as I can figure out shouldn't actually happen
This commit is contained in:
parent
f935078e40
commit
50e7767c93
1 changed files with 1 additions and 1 deletions
|
|
@ -741,7 +741,7 @@ Zotero.Schema = new function(){
|
|||
if (i==16) {
|
||||
Zotero.DB.query("CREATE TABLE tagsTemp (tagID INT, tag TEXT, PRIMARY KEY (tagID))");
|
||||
if (Zotero.DB.tableExists("tags")) {
|
||||
Zotero.DB.query("INSERT INTO tagsTemp SELECT * FROM tags");
|
||||
Zotero.DB.query("INSERT INTO tagsTemp SELECT tagID, tag FROM tags");
|
||||
Zotero.DB.query("DROP TABLE tags");
|
||||
}
|
||||
Zotero.DB.query("CREATE TABLE tags (\n tagID INT,\n tag TEXT,\n tagType INT,\n PRIMARY KEY (tagID),\n UNIQUE (tag, tagType)\n);");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue