From e49ec600b707b67594c7017570ba3fd6d719f021 Mon Sep 17 00:00:00 2001 From: qwerzl Date: Thu, 5 Dec 2024 12:48:19 +0000 Subject: [PATCH] db: migrate database to prisma 6 --- db/migrations/20241205124645_upgrade_to_v6/migration.sql | 5 +++++ db/migrations/migration_lock.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/migrations/20241205124645_upgrade_to_v6/migration.sql diff --git a/db/migrations/20241205124645_upgrade_to_v6/migration.sql b/db/migrations/20241205124645_upgrade_to_v6/migration.sql new file mode 100644 index 00000000..1c904936 --- /dev/null +++ b/db/migrations/20241205124645_upgrade_to_v6/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "_ActivityRecordToClubMembership" ADD CONSTRAINT "_ActivityRecordToClubMembership_AB_pkey" PRIMARY KEY ("A", "B"); + +-- DropIndex +DROP INDEX "_ActivityRecordToClubMembership_AB_unique"; diff --git a/db/migrations/migration_lock.toml b/db/migrations/migration_lock.toml index 99e4f200..fbffa92c 100644 --- a/db/migrations/migration_lock.toml +++ b/db/migrations/migration_lock.toml @@ -1,3 +1,3 @@ # Please do not edit this file manually # It should be added in your version-control system (i.e. Git) -provider = "postgresql" +provider = "postgresql" \ No newline at end of file