From 183ef64775ead8a4475ca5a60df5abe4995814e8 Mon Sep 17 00:00:00 2001
From: bayusamudra5502 <bayusamudra.55.02.com@gmail.com>
Date: Thu, 4 May 2023 18:48:49 +0700
Subject: [PATCH] fix: adding migration abbr

---
 .../development/20230504184521-update-abbr-contraint.sql  | 8 ++++++++
 .../staging/20230504184521-update-abbr-contraint.sql      | 8 ++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 migrations/development/20230504184521-update-abbr-contraint.sql
 create mode 100644 migrations/staging/20230504184521-update-abbr-contraint.sql

diff --git a/migrations/development/20230504184521-update-abbr-contraint.sql b/migrations/development/20230504184521-update-abbr-contraint.sql
new file mode 100644
index 0000000..01fff7d
--- /dev/null
+++ b/migrations/development/20230504184521-update-abbr-contraint.sql
@@ -0,0 +1,8 @@
+
+-- +migrate Up
+ALTER TABLE public.course
+    DROP CONSTRAINT IF EXISTS course_abbreviation_key;
+
+-- +migrate Down
+ALTER TABLE public.course
+    ADD CONSTRAINT course_abbreviation_key UNIQUE (abbreviation);
\ No newline at end of file
diff --git a/migrations/staging/20230504184521-update-abbr-contraint.sql b/migrations/staging/20230504184521-update-abbr-contraint.sql
new file mode 100644
index 0000000..01fff7d
--- /dev/null
+++ b/migrations/staging/20230504184521-update-abbr-contraint.sql
@@ -0,0 +1,8 @@
+
+-- +migrate Up
+ALTER TABLE public.course
+    DROP CONSTRAINT IF EXISTS course_abbreviation_key;
+
+-- +migrate Down
+ALTER TABLE public.course
+    ADD CONSTRAINT course_abbreviation_key UNIQUE (abbreviation);
\ No newline at end of file
-- 
GitLab