Skip to content

Commit

Permalink
fix: migration
Browse files Browse the repository at this point in the history
  • Loading branch information
grutt committed Sep 18, 2024
1 parent ec13724 commit 256fe2e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/repository/prisma/dbsqlc/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ CREATE TABLE "StepRun" (
"semaphoreReleased" BOOLEAN NOT NULL DEFAULT false,
"queue" TEXT NOT NULL DEFAULT 'default',
"priority" INTEGER,
"id_uuid" UUID NOT NULL,
"id_uuid" UUID,
"id" BIGSERIAL NOT NULL,

CONSTRAINT "StepRun_pkey" PRIMARY KEY ("id")
Expand Down
2 changes: 2 additions & 0 deletions prisma/migrations/20240918154105_tmp/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "StepRun" ALTER COLUMN "id_uuid" DROP NOT NULL;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ enum StepRunStatus {

model StepRun {
// base fields
id_uuid String @default(uuid()) @db.Uuid
id_uuid String? @db.Uuid
id BigInt @id @default(autoincrement()) @db.BigInt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
-- Drop index "SemaphoreQueueItem_stepRunId_idx" from table: "SemaphoreQueueItem"
DROP INDEX "SemaphoreQueueItem_stepRunId_idx";
-- Modify "StepRun" table
ALTER TABLE "StepRun" ALTER COLUMN "id_uuid" SET NOT NULL;
4 changes: 2 additions & 2 deletions sql/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:rUpl3fu5pS6OeU4IQlzzn8qYaMi40BlwjYx7BFEur/E=
h1:IxvqPZfG+5ohyFdFP5yi2eckMncQg7Ak8FWNSt4OLa4=
20240115180414_init.sql h1:Ef3ZyjAHkmJPdGF/dEWCahbwgcg6uGJKnDxW2JCRi2k=
20240122014727_v0_6_0.sql h1:o/LdlteAeFgoHJ3e/M4Xnghqt9826IE/Y/h0q95Acuo=
20240126235456_v0_7_0.sql h1:KiVzt/hXgQ6esbdC6OMJOOWuYEXmy1yeCpmsVAHTFKs=
Expand Down Expand Up @@ -58,4 +58,4 @@ h1:rUpl3fu5pS6OeU4IQlzzn8qYaMi40BlwjYx7BFEur/E=
20240916115647_v0.44.8.sql h1:1D5fmikdME61lwN1/EbBTmGcKzpqESZUmfoHvmOeZl4=
20240917183419_tmp.sql h1:AKMhUK7LtMTy53Qp2DlQKtpmF1gP9MMDhNuoHTHjbo8=
20240917191614_tmp.sql h1:PJ22G1o+eE6ClwGYGfPJ8W8/f9MPoP/cCOUwAiRTHU4=
20240918153759_tmp.sql h1:PmaUqlY8Yfj9UCMQK0cSm1k0MwuoLLOCLOKouRLF5oc=
20240918154229_tmp.sql h1:a36RwXNn8tZBxiK6yxzxZEtO/R7vTdFJblnXcjvzO9k=
2 changes: 1 addition & 1 deletion sql/schema/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ CREATE TABLE "StepRun" (
"semaphoreReleased" BOOLEAN NOT NULL DEFAULT false,
"queue" TEXT NOT NULL DEFAULT 'default',
"priority" INTEGER,
"id_uuid" UUID NOT NULL,
"id_uuid" UUID,
"id" BIGSERIAL NOT NULL,

CONSTRAINT "StepRun_pkey" PRIMARY KEY ("id")
Expand Down

0 comments on commit 256fe2e

Please sign in to comment.