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
sql = "DELETE FROM groups WHERE groupID=?";
ids = Zotero.DB.query(sql, this.id)
Zotero.DB.query(sql, this.id)
// Delete library
sql = "DELETE FROM libraries WHERE groupID=?";
ids = Zotero.DB.query(sql, this.id)
sql = "DELETE FROM libraries WHERE libraryID=?";
Zotero.DB.query(sql, this.libraryID)
Zotero.purgeDataObjects();