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 +} 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..f048ba8c 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