diff --git a/hasura.planx.uk/metadata/tables.yaml b/hasura.planx.uk/metadata/tables.yaml index 2557257e6c..806ad6332e 100644 --- a/hasura.planx.uk/metadata/tables.yaml +++ b/hasura.planx.uk/metadata/tables.yaml @@ -2464,6 +2464,19 @@ - subdomain filter: {} comment: "" +- table: + name: temp_data_migrations_audit + schema: public + object_relationships: + - name: flows + using: + manual_configuration: + column_mapping: + flow_id: id + insertion_order: null + remote_table: + name: flows + schema: public - table: name: uniform_applications schema: public diff --git a/hasura.planx.uk/migrations/1734623060683_create_table_public_temp_data_migrations_audit/down.sql b/hasura.planx.uk/migrations/1734623060683_create_table_public_temp_data_migrations_audit/down.sql new file mode 100644 index 0000000000..7f6f79b6ee --- /dev/null +++ b/hasura.planx.uk/migrations/1734623060683_create_table_public_temp_data_migrations_audit/down.sql @@ -0,0 +1 @@ +DROP TABLE "public"."temp_data_migrations_audit"; diff --git a/hasura.planx.uk/migrations/1734623060683_create_table_public_temp_data_migrations_audit/up.sql b/hasura.planx.uk/migrations/1734623060683_create_table_public_temp_data_migrations_audit/up.sql new file mode 100644 index 0000000000..221ccc97a1 --- /dev/null +++ b/hasura.planx.uk/migrations/1734623060683_create_table_public_temp_data_migrations_audit/up.sql @@ -0,0 +1,8 @@ +CREATE TABLE "public"."temp_data_migrations_audit" ( + "flow_id" uuid NOT NULL, + "team_id" integer NOT NULL, + "updated" boolean NOT NULL DEFAULT false, + "updated_at" timestamptz NOT NULL DEFAULT now(), + PRIMARY KEY ("flow_id") +); +COMMENT ON TABLE "public"."temp_data_migrations_audit" IS E'Basic table structure that we can use to track status of data migrations. Contents of this table are ephemeral and may be truncated between migrations';