Fix problems with imported files in 2.0b4 due to incorrect NULL handling
This commit is contained in:
parent
8317a0c439
commit
6de3c02301
2 changed files with 5 additions and 1 deletions
|
@ -2390,6 +2390,10 @@ Zotero.Schema = new function(){
|
|||
if (i==56) {
|
||||
Zotero.DB.query("UPDATE itemAttachments SET mimeType=charsetID, charsetID=NULL WHERE charsetID REGEXP '[a-zA-Z0-9\-]+/[a-zA-Z0-9\-]'");
|
||||
}
|
||||
|
||||
if (i==57) {
|
||||
Zotero.DB.query("UPDATE itemAttachments SET linkMode=0, mimeType=NULL WHERE linkMode IS NULL AND mimeType=0");
|
||||
}
|
||||
}
|
||||
|
||||
_updateDBVersion('userdata', toVersion);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- 56
|
||||
-- 57
|
||||
|
||||
-- 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()
|
||||
|
|
Loading…
Reference in a new issue