generated from Hbbb/go-backend-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
prisma/migrations/20240206005114_rename_budget_rule_to_budget_filter/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,20 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the `BudgetRule` table. If the table is not empty, all the data it contains will be lost. | ||
*/ | ||
-- DropTable | ||
PRAGMA foreign_keys=off; | ||
DROP TABLE "BudgetRule"; | ||
PRAGMA foreign_keys=on; | ||
|
||
-- CreateTable | ||
CREATE TABLE "BudgetFilter" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"budgetId" INTEGER NOT NULL, | ||
"column" TEXT NOT NULL, | ||
"operator" TEXT NOT NULL DEFAULT 'CONTAINS', | ||
"value" TEXT NOT NULL, | ||
CONSTRAINT "BudgetFilter_budgetId_fkey" FOREIGN KEY ("budgetId") REFERENCES "Budget" ("id") ON DELETE RESTRICT ON UPDATE CASCADE | ||
); |
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