The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Retire the moved confirmed_at v59 changesets with a v59 cleanup changeset (#83549)
Alexander Polyankinfc36e4407d65
diff --git a/resources/migrations/059_update_migrations.yaml b/resources/migrations/059_update_migrations.yamlindex 33ba1571959..5c923611cb0 100644--- a/resources/migrations/059_update_migrations.yaml+++ b/resources/migrations/059_update_migrations.yaml@@ -3503,6 +3503,21 @@ databaseChangeLog:- customChange:class: "metabase.app_db.custom_migrations.DropMedallionNamesForDataLayer"+ - changeSet:+ id: v59.2026-07-10T22:29:18+ author: ranquild+ comment: >-+ Retire the changelog rows of v59.2026-07-10T22:29:16 and v59.2026-07-10T22:29:17, which moved to+ migrations/063/20260710_auth_identity_confirmed_at.yaml as v63.2026-07-10T22:29:16 and v63.2026-07-10T22:29:17.+ changes:+ - sql:+ sql: >-+ DELETE FROM DATABASECHANGELOG WHERE id IN (+ 'v59.2026-07-10T22:29:16',+ 'v59.2026-07-10T22:29:17'+ );+ rollback: # not needed+# >>>>>>>>>> DO NOT ADD NEW MIGRATIONS BELOW THIS LINE! ADD THEM ABOVE <<<<<<<<<<########################################################################################################################diff --git a/test/metabase/app_db/schema_migrations_test.clj b/test/metabase/app_db/schema_migrations_test.cljindex 7838b9b0490..e53d01e5740 100644--- a/test/metabase/app_db/schema_migrations_test.clj+++ b/test/metabase/app_db/schema_migrations_test.clj@@ -2861,6 +2861,23 @@(migrate!)(is (= sentinel (t2/select-one-fn :value :setting :key "encryption-check"))))))))+(deftest retire-confirmed-at-v59-ids-test+ (testing "v59.2026-07-10T22:29:18 deletes the changelog rows of the confirmed_at changesets that moved to v63 ids"+ (impl/test-migrations "v59.2026-07-10T22:29:18" [migrate!]+ (let [clog (keyword (liquibase/changelog-table-name (mdb/data-source)))+ last-order (:orderexecuted (t2/select-one clog {:order-by [[:orderexecuted :desc]]}))+ v59-ids ["v59.2026-07-10T22:29:16" "v59.2026-07-10T22:29:17"]]+ (t2/insert! clog (map-indexed (fn [i id]+ {:id id+ :author "escherize"+ :filename "migrations/059_update_migrations.yaml"+ :dateexecuted :%now+ :orderexecuted (+ last-order i 1)+ :exectype "EXECUTED"})+ v59-ids))+ (migrate!)+ (is (empty? (t2/select clog :id [:in v59-ids])))))))+(deftest dependency-status-segment-handles-missing-column-migration-test(testing "The whole 20260402_dependency_status changeset run survives a missingsegment.dependency_analysis_version column (issue #74443). Every changeset that