Fix problems with imported files in 2.0b4 due to incorrect NULL handling

This commit is contained in:
Dan Stillman 2009-05-27 03:52:18 +00:00
parent 8317a0c439
commit 6de3c02301
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -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()