Fix "no such column: groupID" sync error

This commit is contained in:
Dan Stillman 2011-10-09 19:34:54 +00:00
parent 21f1e3789e
commit 3a6977a733

View File

@ -357,11 +357,11 @@ Zotero.Group.prototype.erase = function() {
// Delete group // Delete group
sql = "DELETE FROM groups WHERE groupID=?"; sql = "DELETE FROM groups WHERE groupID=?";
ids = Zotero.DB.query(sql, this.id) Zotero.DB.query(sql, this.id)
// Delete library // Delete library
sql = "DELETE FROM libraries WHERE groupID=?"; sql = "DELETE FROM libraries WHERE libraryID=?";
ids = Zotero.DB.query(sql, this.id) Zotero.DB.query(sql, this.libraryID)
Zotero.purgeDataObjects(); Zotero.purgeDataObjects();