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:
Dan Stillman 2007-03-29 22:37:12 +00:00
parent f935078e40
commit 50e7767c93

View File

@ -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);");