Fix incorrectly entered MIME types and the DB bug in 2.0b4 that caused it
This commit is contained in:
parent
85876c36a6
commit
f93f7384a6
3 changed files with 6 additions and 1 deletions
|
@ -265,6 +265,7 @@ Zotero.DBConnection.prototype.getStatement = function (sql, params, checkParams)
|
||||||
|
|
||||||
params.splice(i, 1);
|
params.splice(i, 1);
|
||||||
i--;
|
i--;
|
||||||
|
lastNullParamIndex--;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!params.length) {
|
if (!params.length) {
|
||||||
|
|
|
@ -2386,6 +2386,10 @@ Zotero.Schema = new function(){
|
||||||
Zotero.DB.query("DROP TABLE tmpEmptyCreators");
|
Zotero.DB.query("DROP TABLE tmpEmptyCreators");
|
||||||
Zotero.DB.query("DELETE FROM creatorData WHERE firstName='' AND lastName=''");
|
Zotero.DB.query("DELETE FROM creatorData WHERE firstName='' AND lastName=''");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i==56) {
|
||||||
|
Zotero.DB.query("UPDATE itemAttachments SET mimeType=charsetID, charsetID=NULL WHERE charsetID REGEXP '[a-zA-Z0-9\-]+/[a-zA-Z0-9\-]'");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_updateDBVersion('userdata', toVersion);
|
_updateDBVersion('userdata', toVersion);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
-- 55
|
-- 56
|
||||||
|
|
||||||
-- This file creates tables containing user-specific data for new users --
|
-- This file creates tables containing user-specific data for new users --
|
||||||
-- any changes made here must be mirrored in transition steps in schema.js::_migrateSchema()
|
-- any changes made here must be mirrored in transition steps in schema.js::_migrateSchema()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue