From 11b65bdfa2167de375ad3df53253c545b68fc96e Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Tue, 19 Nov 2024 12:47:37 +0000 Subject: [PATCH] alter order of down file --- .../down.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hasura.planx.uk/migrations/1732016907414_alter_table_public_analytics_logs_add_column_has_user_clicked_save/down.sql b/hasura.planx.uk/migrations/1732016907414_alter_table_public_analytics_logs_add_column_has_user_clicked_save/down.sql index 6552b9af87..4b95c8e78c 100644 --- a/hasura.planx.uk/migrations/1732016907414_alter_table_public_analytics_logs_add_column_has_user_clicked_save/down.sql +++ b/hasura.planx.uk/migrations/1732016907414_alter_table_public_analytics_logs_add_column_has_user_clicked_save/down.sql @@ -1,5 +1,3 @@ -alter table "public"."analytics_logs" drop column "has_user_clicked_save"; - CREATE OR REPLACE VIEW "public"."analytics_summary" AS SELECT a.id AS analytics_id, al.id AS analytics_log_id, @@ -56,4 +54,5 @@ CREATE OR REPLACE VIEW "public"."analytics_summary" AS LEFT JOIN flows f ON ((a.flow_id = f.id))) LEFT JOIN teams t ON ((t.id = f.team_id))); - GRANT SELECT ON "public"."analytics_summary" TO metabase_read_only; \ No newline at end of file + GRANT SELECT ON "public"."analytics_summary" TO metabase_read_only; +alter table "public"."analytics_logs" drop column "has_user_clicked_save";