diff --git a/hasura.planx.uk/migrations/1706120837563_alter_table_public_feedback_drop_column_node_text/down.sql b/hasura.planx.uk/migrations/1706120837563_alter_table_public_feedback_drop_column_node_text/down.sql deleted file mode 100644 index 36039275a4..0000000000 --- a/hasura.planx.uk/migrations/1706120837563_alter_table_public_feedback_drop_column_node_text/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" add column "node_text" text; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1706120837563_alter_table_public_feedback_drop_column_node_text/up.sql b/hasura.planx.uk/migrations/1706120837563_alter_table_public_feedback_drop_column_node_text/up.sql deleted file mode 100644 index 536043652d..0000000000 --- a/hasura.planx.uk/migrations/1706120837563_alter_table_public_feedback_drop_column_node_text/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" drop column "node_text" cascade; diff --git a/hasura.planx.uk/migrations/1706120849817_alter_table_public_feedback_drop_column_help_text/down.sql b/hasura.planx.uk/migrations/1706120849817_alter_table_public_feedback_drop_column_help_text/down.sql deleted file mode 100644 index afb2a855f7..0000000000 --- a/hasura.planx.uk/migrations/1706120849817_alter_table_public_feedback_drop_column_help_text/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" add column "help_text" text; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1706120849817_alter_table_public_feedback_drop_column_help_text/up.sql b/hasura.planx.uk/migrations/1706120849817_alter_table_public_feedback_drop_column_help_text/up.sql deleted file mode 100644 index f07fb38f54..0000000000 --- a/hasura.planx.uk/migrations/1706120849817_alter_table_public_feedback_drop_column_help_text/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" drop column "help_text" cascade; diff --git a/hasura.planx.uk/migrations/1706120849817_squashed_alter_table_public_feedback_drop_columns_help_text_node_text/down.sql b/hasura.planx.uk/migrations/1706120849817_squashed_alter_table_public_feedback_drop_columns_help_text_node_text/down.sql new file mode 100644 index 0000000000..647fc97800 --- /dev/null +++ b/hasura.planx.uk/migrations/1706120849817_squashed_alter_table_public_feedback_drop_columns_help_text_node_text/down.sql @@ -0,0 +1,3 @@ + +alter table "public"."feedback" add column "help_text" text; +alter table "public"."feedback" add column "node_text" text; \ No newline at end of file diff --git a/hasura.planx.uk/migrations/1706120849817_squashed_alter_table_public_feedback_drop_columns_help_text_node_text/up.sql b/hasura.planx.uk/migrations/1706120849817_squashed_alter_table_public_feedback_drop_columns_help_text_node_text/up.sql new file mode 100644 index 0000000000..94e3feb751 --- /dev/null +++ b/hasura.planx.uk/migrations/1706120849817_squashed_alter_table_public_feedback_drop_columns_help_text_node_text/up.sql @@ -0,0 +1,4 @@ + +alter table "public"."feedback" drop column "node_text" cascade; + +alter table "public"."feedback" drop column "help_text" cascade; diff --git a/hasura.planx.uk/migrations/1706720325483_alter_table_public_feedback_alter_column_breadcrumbs/down.sql b/hasura.planx.uk/migrations/1706720325483_alter_table_public_feedback_alter_column_breadcrumbs/down.sql deleted file mode 100644 index 8ea1180a19..0000000000 --- a/hasura.planx.uk/migrations/1706720325483_alter_table_public_feedback_alter_column_breadcrumbs/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" rename column "user_data" to "breadcrumbs"; diff --git a/hasura.planx.uk/migrations/1706720325483_alter_table_public_feedback_alter_column_breadcrumbs/up.sql b/hasura.planx.uk/migrations/1706720325483_alter_table_public_feedback_alter_column_breadcrumbs/up.sql deleted file mode 100644 index 70e4b9271c..0000000000 --- a/hasura.planx.uk/migrations/1706720325483_alter_table_public_feedback_alter_column_breadcrumbs/up.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" rename column "breadcrumbs" to "user_data"; diff --git a/hasura.planx.uk/migrations/1706721987158_alter_table_public_feedback_drop_columns_address_component_metadata_project_type/up.sql b/hasura.planx.uk/migrations/1706721987158_alter_table_public_feedback_drop_columns_address_component_metadata_project_type/up.sql deleted file mode 100644 index b3692ec9a1..0000000000 --- a/hasura.planx.uk/migrations/1706721987158_alter_table_public_feedback_drop_columns_address_component_metadata_project_type/up.sql +++ /dev/null @@ -1,6 +0,0 @@ - -alter table "public"."feedback" drop column "address" cascade; - -alter table "public"."feedback" drop column "component_metadata" cascade; - -alter table "public"."feedback" drop column "project_type" cascade; diff --git a/hasura.planx.uk/migrations/1706722642884_alter_table_public_feedback_add_column_node_type/down.sql b/hasura.planx.uk/migrations/1706722642884_alter_table_public_feedback_add_column_node_type/down.sql deleted file mode 100644 index a438f2e1f7..0000000000 --- a/hasura.planx.uk/migrations/1706722642884_alter_table_public_feedback_add_column_node_type/down.sql +++ /dev/null @@ -1 +0,0 @@ -alter table "public"."feedback" drop column "node_type"; diff --git a/hasura.planx.uk/migrations/1706722642884_alter_table_public_feedback_add_column_node_type/up.sql b/hasura.planx.uk/migrations/1706722642884_alter_table_public_feedback_add_column_node_type/up.sql deleted file mode 100644 index 6a3c30b409..0000000000 --- a/hasura.planx.uk/migrations/1706722642884_alter_table_public_feedback_add_column_node_type/up.sql +++ /dev/null @@ -1,3 +0,0 @@ -alter table "public"."feedback" add column "node_type" text - null; -comment on column "public"."feedback"."node_type" is E'The human readable type of the node'; diff --git a/hasura.planx.uk/migrations/1706721987158_alter_table_public_feedback_drop_columns_address_component_metadata_project_type/down.sql b/hasura.planx.uk/migrations/1706722642884_squshed_alter_table_public_feedback_rename_breadcrumbs_drop_address_component_metadata_project_type_add_node_type/down.sql similarity index 59% rename from hasura.planx.uk/migrations/1706721987158_alter_table_public_feedback_drop_columns_address_component_metadata_project_type/down.sql rename to hasura.planx.uk/migrations/1706722642884_squshed_alter_table_public_feedback_rename_breadcrumbs_drop_address_component_metadata_project_type_add_node_type/down.sql index 8063b573ac..b52fdbf991 100644 --- a/hasura.planx.uk/migrations/1706721987158_alter_table_public_feedback_drop_columns_address_component_metadata_project_type/down.sql +++ b/hasura.planx.uk/migrations/1706722642884_squshed_alter_table_public_feedback_rename_breadcrumbs_drop_address_component_metadata_project_type_add_node_type/down.sql @@ -1,6 +1,11 @@ + +alter table "public"."feedback" drop column "node_type"; + alter table "public"."feedback" add column "address" text; alter table "public"."feedback" add column "project_type" text; alter table "public"."feedback" add column "component_metadata" jsonb; + +alter table "public"."feedback" rename column "user_data" to "breadcrumbs"; diff --git a/hasura.planx.uk/migrations/1706722642884_squshed_alter_table_public_feedback_rename_breadcrumbs_drop_address_component_metadata_project_type_add_node_type/up.sql b/hasura.planx.uk/migrations/1706722642884_squshed_alter_table_public_feedback_rename_breadcrumbs_drop_address_component_metadata_project_type_add_node_type/up.sql new file mode 100644 index 0000000000..fc2b5023cf --- /dev/null +++ b/hasura.planx.uk/migrations/1706722642884_squshed_alter_table_public_feedback_rename_breadcrumbs_drop_address_component_metadata_project_type_add_node_type/up.sql @@ -0,0 +1,13 @@ + +alter table "public"."feedback" rename column "breadcrumbs" to "user_data"; + + +alter table "public"."feedback" drop column "address" cascade; + +alter table "public"."feedback" drop column "component_metadata" cascade; + +alter table "public"."feedback" drop column "project_type" cascade; + +alter table "public"."feedback" add column "node_type" text + null; +comment on column "public"."feedback"."node_type" is E'The human readable type of the node';