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
18 changed files
with
327 additions
and
210 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
cli/.idea/runConfigurations/load_csv.xml → cli/.idea/runConfigurations/extract.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
cli/.idea/runConfigurations/load_sqlite.xml → cli/.idea/runConfigurations/load.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...dea/runConfigurations/load_plaid_data.xml → cli/.idea/runConfigurations/transform.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
19 changes: 19 additions & 0 deletions
19
prisma/migrations/20240207161829_add_log_to_balances/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,19 @@ | ||
-- RedefineTables | ||
PRAGMA foreign_keys=OFF; | ||
CREATE TABLE "new_AccountBalance" ( | ||
"current" REAL NOT NULL, | ||
"available" REAL NOT NULL, | ||
"isoCurrencyCode" TEXT NOT NULL, | ||
"accountPlaidId" TEXT NOT NULL, | ||
"date" TEXT NOT NULL, | ||
"importLogId" INTEGER, | ||
|
||
PRIMARY KEY ("accountPlaidId", "date"), | ||
CONSTRAINT "AccountBalance_accountPlaidId_fkey" FOREIGN KEY ("accountPlaidId") REFERENCES "Account" ("plaidId") ON DELETE RESTRICT ON UPDATE CASCADE, | ||
CONSTRAINT "AccountBalance_importLogId_fkey" FOREIGN KEY ("importLogId") REFERENCES "ImportLog" ("id") ON DELETE SET NULL ON UPDATE CASCADE | ||
); | ||
INSERT INTO "new_AccountBalance" ("accountPlaidId", "available", "current", "date", "isoCurrencyCode") SELECT "accountPlaidId", "available", "current", "date", "isoCurrencyCode" FROM "AccountBalance"; | ||
DROP TABLE "AccountBalance"; | ||
ALTER TABLE "new_AccountBalance" RENAME TO "AccountBalance"; | ||
PRAGMA foreign_key_check; | ||
PRAGMA foreign_keys=ON; |
Oops, something went wrong.