From 28b648f474807e96df4df8610e26fac0e8412a83 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 11 May 2021 15:11:49 -0700 Subject: [PATCH] Mark cost center not required. --- README.MD | 2 ++ .../down.yaml | 5 +++++ .../up.yaml | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml create mode 100644 hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml diff --git a/README.MD b/README.MD index b51ad840c..8e5a4f570 100644 --- a/README.MD +++ b/README.MD @@ -10,6 +10,8 @@ npx hasura console --admin-secret Dev-BodyShopAppBySnaptSoftware! Migrating to Staging: npx hasura migrate apply --endpoint https://db.imex.online/ --admin-secret 'Production-ImEXOnline!@#' +npx hasura migrate apply --version "1620770615633" --skip-execution --endpoint https://db.test.bodyshop.app/ --admin-secret 'Test-ImEXOnlineBySnaptSoftware!' + NGROK TEsting: ./ngrok.exe http http://localhost:5000 -host-header="localhost:5000" diff --git a/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml b/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml new file mode 100644 index 000000000..2fb7052df --- /dev/null +++ b/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/down.yaml @@ -0,0 +1,5 @@ +- args: + cascade: false + read_only: false + sql: ALTER TABLE "public"."vendors" ALTER COLUMN "cost_center" SET NOT NULL; + type: run_sql diff --git a/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml b/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml new file mode 100644 index 000000000..43263e363 --- /dev/null +++ b/hasura/migrations/1620770615633_alter_table_public_vendors_alter_column_cost_center/up.yaml @@ -0,0 +1,5 @@ +- args: + cascade: false + read_only: false + sql: ALTER TABLE "public"."vendors" ALTER COLUMN "cost_center" DROP NOT NULL; + type: run_sql