From 9cb68dfce817e86cd7eb545cf46ee1a6f9f24087 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Wed, 13 Nov 2024 13:00:05 +0000 Subject: [PATCH] squash and alter templated from to uuid --- .../1731498412695_add description column to flows/down.sql | 1 - .../1731498412695_add description column to flows/up.sql | 1 - .../down.sql | 2 ++ .../up.sql | 3 +++ .../1731498447017_add template from column to flows/up.sql | 1 - 5 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 hasura.planx.uk/migrations/1731498412695_add description column to flows/down.sql delete mode 100644 hasura.planx.uk/migrations/1731498412695_add description column to flows/up.sql rename hasura.planx.uk/migrations/{1731498447017_add template from column to flows => 1731498412695_add_description_templated_from_to_flows}/down.sql (50%) create mode 100644 hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/up.sql delete mode 100644 hasura.planx.uk/migrations/1731498447017_add template from column to flows/up.sql diff --git a/hasura.planx.uk/migrations/1731498412695_add description column to flows/down.sql b/hasura.planx.uk/migrations/1731498412695_add description column to flows/down.sql deleted file mode 100644 index def2473157..0000000000 --- a/hasura.planx.uk/migrations/1731498412695_add description column to flows/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."flows" drop column "description"; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1731498412695_add description column to flows/up.sql b/hasura.planx.uk/migrations/1731498412695_add description column to flows/up.sql deleted file mode 100644 index f20e6bfd5e..0000000000 --- a/hasura.planx.uk/migrations/1731498412695_add description column to flows/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."flows" add column "description" text; diff --git a/hasura.planx.uk/migrations/1731498447017_add template from column to flows/down.sql b/hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/down.sql similarity index 50% rename from hasura.planx.uk/migrations/1731498447017_add template from column to flows/down.sql rename to hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/down.sql index 64c82118d9..6854e01de9 100644 --- a/hasura.planx.uk/migrations/1731498447017_add template from column to flows/down.sql +++ b/hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/down.sql @@ -1 +1,3 @@ +alter table "public"."flows" drop column "description"; + alter table "public"."flows" drop column "templated_from"; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/up.sql b/hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/up.sql new file mode 100644 index 0000000000..49cb59d58b --- /dev/null +++ b/hasura.planx.uk/migrations/1731498412695_add_description_templated_from_to_flows/up.sql @@ -0,0 +1,3 @@ +alter table "public"."flows" add column "description" text; + +alter table "public"."flows" add column "templated_from" uuid; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1731498447017_add template from column to flows/up.sql b/hasura.planx.uk/migrations/1731498447017_add template from column to flows/up.sql deleted file mode 100644 index 615303e0b1..0000000000 --- a/hasura.planx.uk/migrations/1731498447017_add template from column to flows/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."flows" add column "templated_from" timestamp;