Skip to content

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

1.9 KB
Raw Blame
## Record which sandboxes (row-level security restrictions) were applied to each query execution, so Usage
## Analytics can show more than an unmodified-looking query for sandboxed runs (UXW-3767).

databaseChangeLog:
  - changeSet:
      id: v65.2026-10-06T10:00:00
      author: johnswanson
      comment: Add query_execution.sandbox_details
      changes:
        - addColumn:
            tableName: query_execution
            columns:
              - column:
                  name: sandbox_details
                  type: ${text.type}
                  remarks: JSON array describing the sandboxes (row-level restrictions) applied to this execution
                  constraints:
                    nullable: true

  - changeSet:
      id: v65.2026-10-06T10:00:01
      author: johnswanson
      comment: Updated view v_query_log v7 - add sandbox_details (UXW-3767)
      changes:
        - sqlFile:
            dbms: postgresql
            path: ../instance_analytics_views/query_log/v7/postgres-query_log.sql
            relativeToChangelogFile: true
        - sqlFile:
            dbms: mysql,mariadb
            path: ../instance_analytics_views/query_log/v7/mysql-query_log.sql
            relativeToChangelogFile: true
        - sqlFile:
            dbms: h2
            path: ../instance_analytics_views/query_log/v7/h2-query_log.sql
            relativeToChangelogFile: true
      rollback:
        - sqlFile:
            dbms: postgresql
            path: ../instance_analytics_views/query_log/v6/postgres-query_log.sql
            relativeToChangelogFile: true
        - sqlFile:
            dbms: mysql,mariadb
            path: ../instance_analytics_views/query_log/v6/mysql-query_log.sql
            relativeToChangelogFile: true
        - sqlFile:
            dbms: h2
            path: ../instance_analytics_views/query_log/v6/h2-query_log.sql
            relativeToChangelogFile: true