From ddbeec2c523287a2459c75ab2913bcbd3a1af17a Mon Sep 17 00:00:00 2001 From: Kavika Date: Fri, 2 Aug 2024 15:11:22 +1000 Subject: [PATCH] make 'Pending' the default Application status --- backend/migrations/20240406031915_create_applications.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/migrations/20240406031915_create_applications.sql b/backend/migrations/20240406031915_create_applications.sql index ffcbba42..e2fcd057 100644 --- a/backend/migrations/20240406031915_create_applications.sql +++ b/backend/migrations/20240406031915_create_applications.sql @@ -4,8 +4,8 @@ CREATE TABLE applications ( id BIGINT PRIMARY KEY, campaign_id BIGINT NOT NULL, user_id BIGINT NOT NULL, - status application_status NOT NULL, - private_status application_status NOT NULL, + status application_status NOT NULL DEFAULT 'Pending', + private_status application_status NOT NULL DEFAULT 'Pending', created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL, updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL, CONSTRAINT FK_applications_campaigns