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.
* add debug configs for CLI in vscode * only operate on latest file in transform accounts * rewrite TransformAccounts to only process newest file * adjust balances schema * adjust balances schema * fix import, net worth --------- Co-authored-by: quinn <[email protected]>
- Loading branch information
Showing
20 changed files
with
366 additions
and
172 deletions.
There are no files selected for viewing
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
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
26 changes: 26 additions & 0 deletions
26
prisma/migrations/20240207000008_uniquify_account_balance_history/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,26 @@ | ||
/* | ||
Warnings: | ||
- The primary key for the `AccountBalance` table will be changed. If it partially fails, the table could be left without primary key constraint. | ||
- You are about to drop the column `createdAt` on the `AccountBalance` table. All the data in the column will be lost. | ||
- You are about to drop the column `id` on the `AccountBalance` table. All the data in the column will be lost. | ||
- Added the required column `date` to the `AccountBalance` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- 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, | ||
|
||
PRIMARY KEY ("accountPlaidId", "date"), | ||
CONSTRAINT "AccountBalance_accountPlaidId_fkey" FOREIGN KEY ("accountPlaidId") REFERENCES "Account" ("plaidId") ON DELETE RESTRICT ON UPDATE CASCADE | ||
); | ||
INSERT INTO "new_AccountBalance" ("accountPlaidId", "available", "current", "isoCurrencyCode") SELECT "accountPlaidId", "available", "current", "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.