also looking at this
fix(database): generate the migrations the models have been waiting for
#13
10 files
+625
-10
| @@ -0,0 +1,15 @@ | ||
| 1 | -- qb:generated | |
| 2 | -- @generated by `buddy migrate:regenerate` - edits will be overwritten | |
| 3 | CREATE TABLE IF NOT EXISTS "card_attachments" ( | |
| 4 | "id" INTEGER PRIMARY KEY AUTOINCREMENT, | |
| 5 | "disk" TEXT not null, | |
| 6 | "path" TEXT not null, | |
| 7 | "mime_type" TEXT not null, | |
| 8 | "size_bytes" INTEGER not null, | |
| 9 | "card_id" INTEGER REFERENCES "cards"("id") ON DELETE CASCADE, | |
| 10 | "created_at" TEXT not null default CURRENT_TIMESTAMP, | |
| 11 | "updated_at" TEXT, | |
| 12 | "uuid" TEXT | |
| 13 | ); | |
| 14 | CREATE UNIQUE INDEX IF NOT EXISTS "card_attachments_path_unique" ON "card_attachments" ("path"); | |
| 15 | CREATE UNIQUE INDEX IF NOT EXISTS "card_attachments_uuid_unique" ON "card_attachments" ("uuid"); | |