sql: Add db migration to clean up message_ids with extra whitespace
This commit is contained in:
parent
e05efff7e0
commit
3ddce74844
2 changed files with 7 additions and 1 deletions
6
sql/version-028.sql
Normal file
6
sql/version-028.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
--
|
||||||
|
-- Rebuild corrupted message ids, again
|
||||||
|
--
|
||||||
|
|
||||||
|
UPDATE MessageTable
|
||||||
|
SET message_id = trim(trim(message_id), '\n');
|
||||||
|
|
@ -107,7 +107,7 @@ class Geary.ImapDB.DatabaseTest : TestCase {
|
||||||
);
|
);
|
||||||
db.open.end(async_result());
|
db.open.end(async_result());
|
||||||
|
|
||||||
assert_equal<int?>(db.get_schema_version(), 27, "Post-upgrade version");
|
assert_equal<int?>(db.get_schema_version(), 28, "Post-upgrade version");
|
||||||
|
|
||||||
// Since schema v22 deletes the re-creates all attachments,
|
// Since schema v22 deletes the re-creates all attachments,
|
||||||
// attachment 12 should no longer exist on the file system and
|
// attachment 12 should no longer exist on the file system and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue