-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some features might not support this feature
- Loading branch information
Showing
5 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
app/migrations/2023-11-12-160133_make_modification_sequence_nullable/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE messages_new ( | ||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
message_id TEXT NOT NULL, | ||
subject TEXT NOT NULL, | ||
folder_id INTEGER NOT NULL, | ||
time_received TIMESTAMP NOT NULL, | ||
"from" TEXT NOT NULL, | ||
"to" TEXT NOT NULL, | ||
cc TEXT NOT NULL, | ||
bcc TEXT NOT NULL, | ||
content TEXT, | ||
"references" TEXT NOT NULL, | ||
in_reply_to TEXT NOT NULL, | ||
uid INTEGER NOT NULL, | ||
modification_sequence INTEGER NOT NULL, | ||
seen BOOLEAN NOT NULL, | ||
flagged BOOLEAN NOT NULL, | ||
draft BOOLEAN NOT NULL, | ||
deleted BOOLEAN NOT NULL | ||
); | ||
|
||
INSERT INTO messages_new SELECT * FROM messages; | ||
DROP TABLE messages; | ||
ALTER TABLE messages_new RENAME TO messages; |
24 changes: 24 additions & 0 deletions
24
app/migrations/2023-11-12-160133_make_modification_sequence_nullable/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE messages_new ( | ||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
message_id TEXT NOT NULL, | ||
subject TEXT NOT NULL, | ||
folder_id INTEGER NOT NULL, | ||
time_received TIMESTAMP NOT NULL, | ||
"from" TEXT NOT NULL, | ||
"to" TEXT NOT NULL, | ||
cc TEXT NOT NULL, | ||
bcc TEXT NOT NULL, | ||
content TEXT, | ||
"references" TEXT NOT NULL, | ||
in_reply_to TEXT NOT NULL, | ||
uid INTEGER NOT NULL, | ||
modification_sequence INTEGER NULL, | ||
seen BOOLEAN NOT NULL, | ||
flagged BOOLEAN NOT NULL, | ||
draft BOOLEAN NOT NULL, | ||
deleted BOOLEAN NOT NULL | ||
); | ||
|
||
INSERT INTO messages_new SELECT * FROM messages; | ||
DROP TABLE messages; | ||
ALTER TABLE messages_new RENAME TO messages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters