panorama/migrations/1_initial.sql

15 lines
342 B
MySQL
Raw Normal View History

2021-03-25 09:30:31 +00:00
CREATE TABLE IF NOT EXISTS "accounts" (
2021-03-25 12:14:05 +00:00
"name" TEXT PRIMARY KEY,
2021-03-25 09:30:31 +00:00
-- hash of the account details, used to check if accounts have changed
2021-03-25 12:14:05 +00:00
"checksum" TEXT
2021-03-25 09:30:31 +00:00
);
CREATE TABLE IF NOT EXISTS "mail" (
"id" INTEGER PRIMARY KEY,
2021-03-25 12:14:05 +00:00
"account" TEXT,
2021-03-25 09:30:31 +00:00
"folder" TEXT,
2021-03-25 13:34:59 +00:00
"uidvalidity" INTEGER,
"uid" INTEGER,
"filename" TEXT
2021-03-25 09:30:31 +00:00
);