Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

1.3 KB
Raw Blame
# `versionless-late-roc-run1.yaml` as shipped by 65.1: only the runOnChange view's SQL was edited in place, so Liquibase
# re-runs it (RERAN) and moves its changelog row into 65.1's deployment.
databaseChangeLog:
  - logicalFilePath: migrations/2026/versionless_late_roc.yaml
  - changeSet:
      id: late_roc_table
      author: test
      comment: table of 65.0 (scenario test)
      changes:
        - createTable:
            tableName: lroc_table
            columns:
              - column:
                  name: id
                  type: int
      rollback:
        - dropTable:
            tableName: lroc_table
  - changeSet:
      id: late_roc_column
      author: test
      comment: column of 65.0 that the view reads (scenario test)
      changes:
        - addColumn:
            tableName: lroc_table
            columns:
              - column:
                  name: extra
                  type: int
      rollback:
        - dropColumn:
            tableName: lroc_table
            columnName: extra
  - changeSet:
      id: late_roc_view
      author: test
      runOnChange: true
      comment: runOnChange view over the 65.0 column (scenario test)
      changes:
        - sql:
            sql: CREATE OR REPLACE VIEW v_lroc AS SELECT extra, 2 AS x FROM lroc_table
      rollback:
        - sql:
            sql: DROP VIEW IF EXISTS v_lroc