From 887b9e332c9e5b2a67de3591031a21f5deb82e83 Mon Sep 17 00:00:00 2001 From: mbartenev-atypon Date: Thu, 31 Oct 2024 10:34:32 +0100 Subject: [PATCH 1/3] LEAN-4081 --- prisma/migrations/20241031093413_init/migration.sql | 11 +++++++++++ prisma/schema.prisma | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20241031093413_init/migration.sql diff --git a/prisma/migrations/20241031093413_init/migration.sql b/prisma/migrations/20241031093413_init/migration.sql new file mode 100644 index 00000000..fe1b993d --- /dev/null +++ b/prisma/migrations/20241031093413_init/migration.sql @@ -0,0 +1,11 @@ +/* + Warnings: + + - The primary key for the `MigrationBackup` table will be changed. If it partially fails, the table could be left without primary key constraint. + - The required column `id` was added to the `MigrationBackup` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required. + +*/ +-- AlterTable +ALTER TABLE "MigrationBackup" DROP CONSTRAINT "MigrationBackup_pkey", +ADD COLUMN "id" TEXT NOT NULL, +ADD CONSTRAINT "MigrationBackup_pkey" PRIMARY KEY ("id"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index b96efc41..99c08afb 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -49,7 +49,8 @@ model ManuscriptDoc { } model MigrationBackup { - manuscript_model_id String @id @default(uuid()) + id String @id @default(uuid()) + manuscript_model_id String user_model_id String project_model_id String doc Json From 8b1d6213dffc17c398c4a3d48908b4c6f53bc711 Mon Sep 17 00:00:00 2001 From: mbartenev-atypon Date: Thu, 31 Oct 2024 10:36:00 +0100 Subject: [PATCH 2/3] LEAN-4081 --- prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 99c08afb..f048ba8c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -49,7 +49,7 @@ model ManuscriptDoc { } model MigrationBackup { - id String @id @default(uuid()) + id String @id @default(uuid()) manuscript_model_id String user_model_id String project_model_id String From 420c95497cc23faa82050955cdde8c324b14a1c6 Mon Sep 17 00:00:00 2001 From: mbartenev-atypon Date: Thu, 31 Oct 2024 12:17:13 +0100 Subject: [PATCH 3/3] updates --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 79b1c781..33a79b80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@manuscripts/api", - "version": "1.13.10", + "version": "1.13.10-LEAN-4081", "description": "Manuscripts API server", "license": "Apache-2.0", "main": "dist/index", @@ -143,4 +143,4 @@ "tsc-watch": "^6.0.0", "typescript": "4.9.4" } -} \ No newline at end of file +}