From 9c751b645062f8ecdc9d3929500025c566508c01 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 23 Jul 2023 14:29:39 +0200 Subject: [PATCH] Improve migration --- .../migration.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prisma/migrations/20230723104112_added_account_balances_to_account/migration.sql b/prisma/migrations/20230723104112_added_account_balances_to_account/migration.sql index 713cc6c3e..d13327514 100644 --- a/prisma/migrations/20230723104112_added_account_balances_to_account/migration.sql +++ b/prisma/migrations/20230723104112_added_account_balances_to_account/migration.sql @@ -18,10 +18,10 @@ ALTER TABLE "AccountBalance" ADD CONSTRAINT "AccountBalance_accountId_userId_fke INSERT INTO "AccountBalance" ("accountId", "createdAt", "date", "id", "updatedAt", "userId", "value") SELECT "id", - "createdAt", - "createdAt", + "updatedAt", + "updatedAt", "id", - "createdAt", + "updatedAt", "userId", "balance" FROM "Account";