-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add status field on Workflow model and remove unique constraint
- Loading branch information
1 parent
f6c3449
commit 5bb7ee5
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...ns/20250119084850_add_status_field_to_workflow_and_remove_unique_constraint/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
Warnings: | ||
- Added the required column `status` to the `Workflow` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- CreateEnum | ||
CREATE TYPE "WorkflowStatus" AS ENUM ('On', 'Off'); | ||
|
||
-- DropIndex | ||
DROP INDEX "Workflow_name_userId_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Workflow" ADD COLUMN "status" "WorkflowStatus" NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters