mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 23:47:50 +08:00
fix: run mail flags migration only for older schemas
This commit is contained in:
@@ -206,7 +206,7 @@ export default {
|
|||||||
await c.env.DB.exec(`ALTER TABLE raw_mails ADD COLUMN raw_blob BLOB;`);
|
await c.env.DB.exec(`ALTER TABLE raw_mails ADD COLUMN raw_blob BLOB;`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (version && version <= "v0.0.8") {
|
if (version && version <= "v0.0.7") {
|
||||||
await c.env.DB.exec(`
|
await c.env.DB.exec(`
|
||||||
CREATE TABLE IF NOT EXISTS mail_flags (
|
CREATE TABLE IF NOT EXISTS mail_flags (
|
||||||
mail_id INTEGER NOT NULL,
|
mail_id INTEGER NOT NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user