Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
907e56a
commit 08a2f60
Showing
2 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
backend/prisma/migrations/20221208191607_v0_3_3/migration.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,17 @@ | ||
-- RedefineTables | ||
PRAGMA foreign_keys=OFF; | ||
CREATE TABLE "new_Config" ( | ||
"updatedAt" DATETIME NOT NULL, | ||
"key" TEXT NOT NULL PRIMARY KEY, | ||
"type" TEXT NOT NULL, | ||
"value" TEXT NOT NULL, | ||
"description" TEXT NOT NULL, | ||
"obscured" BOOLEAN NOT NULL DEFAULT false, | ||
"secret" BOOLEAN NOT NULL DEFAULT true, | ||
"locked" BOOLEAN NOT NULL DEFAULT false | ||
); | ||
INSERT INTO "new_Config" ("description", "key", "locked", "secret", "type", "updatedAt", "value") SELECT "description", "key", "locked", "secret", "type", "updatedAt", "value" FROM "Config"; | ||
DROP TABLE "Config"; | ||
ALTER TABLE "new_Config" RENAME TO "Config"; | ||
PRAGMA foreign_key_check; | ||
PRAGMA foreign_keys=ON; |
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