From 9eb23a08cc4c88deb2176d710387abeaf86427f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mohamed=20Sohail=20=E5=A4=A9=E5=91=BD?= Date: Wed, 3 Jul 2024 13:49:08 +0800 Subject: [PATCH] feat: drop description constraints (#36) --- migrations/014_drop_desc_constraints.sql | 3 +++ .../1719922775002_014_drop_desc_constraints/down.sql | 4 ++++ .../cic_graph/1719922775002_014_drop_desc_constraints/up.sql | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 migrations/014_drop_desc_constraints.sql create mode 100644 migrations/cic_graph/1719922775002_014_drop_desc_constraints/down.sql create mode 100644 migrations/cic_graph/1719922775002_014_drop_desc_constraints/up.sql diff --git a/migrations/014_drop_desc_constraints.sql b/migrations/014_drop_desc_constraints.sql new file mode 100644 index 0000000..6d56a6b --- /dev/null +++ b/migrations/014_drop_desc_constraints.sql @@ -0,0 +1,3 @@ +ALTER TABLE swap_pools DROP CONSTRAINT swap_pools_swap_pool_description_check RESTRICT; +ALTER TABLE vouchers DROP CONSTRAINT vouchers_voucher_description_check RESTRICT; + diff --git a/migrations/cic_graph/1719922775002_014_drop_desc_constraints/down.sql b/migrations/cic_graph/1719922775002_014_drop_desc_constraints/down.sql new file mode 100644 index 0000000..2da2ade --- /dev/null +++ b/migrations/cic_graph/1719922775002_014_drop_desc_constraints/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- ALTER TABLE swap_pools DROP CONSTRAINT swap_pools_swap_pool_description_check RESTRICT; +-- ALTER TABLE vouchers DROP CONSTRAINT vouchers_voucher_description_check RESTRICT; diff --git a/migrations/cic_graph/1719922775002_014_drop_desc_constraints/up.sql b/migrations/cic_graph/1719922775002_014_drop_desc_constraints/up.sql new file mode 100644 index 0000000..7134ff4 --- /dev/null +++ b/migrations/cic_graph/1719922775002_014_drop_desc_constraints/up.sql @@ -0,0 +1,2 @@ +ALTER TABLE swap_pools DROP CONSTRAINT swap_pools_swap_pool_description_check RESTRICT; +ALTER TABLE vouchers DROP CONSTRAINT vouchers_voucher_description_check RESTRICT;