From 0cfe327a6fd87cf048071cb840844e93a4f74db8 Mon Sep 17 00:00:00 2001
From: Ryan Senior <ryan@metabase.com>
Date: Mon, 25 Sep 2017 15:52:51 -0500
Subject: [PATCH] Create migration to will safely revert the async xray tables
 [ci all]

The `computation_job` and `computation_job_result tables` accidentally
made it into 0.26.0.RC2. This commit will remove those tables as a
separate migration if they are present.
---
 resources/migrations/000_migrations.yaml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/resources/migrations/000_migrations.yaml b/resources/migrations/000_migrations.yaml
index bd0795c090b..3f04701242d 100644
--- a/resources/migrations/000_migrations.yaml
+++ b/resources/migrations/000_migrations.yaml
@@ -3828,4 +3828,16 @@ databaseChangeLog:
       - dropForeignKeyConstraint:
           baseTableName: raw_table
           constraintName: fk_rawtable_ref_database
-          remarks: 'This FK prevents deleting databases even though RAW_TABLE is no longer used. The table is still around to support downgrades, but the FK reference is no longer needed.'
\ No newline at end of file
+          remarks: 'This FK prevents deleting databases even though RAW_TABLE is no longer used. The table is still around to support downgrades, but the FK reference is no longer needed.'
+# Changeset 65 was accidentally released in 0.26.0.RC2. The changeset has been removed from the migrations list so that
+# users that haven't ran the migration (i.e. they didn't run 0.26.0.RC2) won't waste time running it just to have it
+# reversed. For 0.26.0.RC2 users, the below changeset will remove those tables if they are present
+  - changeSet:
+      id: 66
+      author: senior
+      comment: 'Added 0.26.0'
+      changes:
+        - sql:
+            sql: drop table if exists computation_job cascade
+        - sql:
+            sql: drop table if exists computation_job_result cascade
-- 
GitLab