Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add new campaign states #672

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
feat: Add new campaign statuses
sashko9807 committed Sep 3, 2024
commit ad4ba416c7b690a132ae847a558a710f2198312d
13 changes: 13 additions & 0 deletions migrations/20240903065206_add_new_campaign_states/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.


ALTER TYPE "campaign_state" ADD VALUE 'partially_financed';
ALTER TYPE "campaign_state" ADD VALUE 'paused';
ALTER TYPE "campaign_state" ADD VALUE 'suspended';
ALTER TYPE "campaign_state" ADD VALUE 'blocked';
ALTER TYPE "campaign_state" ADD VALUE 'deleted';
5 changes: 5 additions & 0 deletions podkrepi.dbml
Original file line number Diff line number Diff line change
@@ -644,6 +644,11 @@ Enum CampaignState {
draft
active
complete
partially_financed
paused
suspended
blocked
deleted
}

Enum CampaignNewsState {
6 changes: 5 additions & 1 deletion schema.prisma
Original file line number Diff line number Diff line change
@@ -733,7 +733,11 @@ enum CampaignState {
draft
active
complete
partially_financed
paused
suspended
blocked
deleted
@@map("campaign_state")
}