All Downloads are FREE. Search and download functionalities are using the official Maven repository.

db.changelog.20200714-add-event-application-column.yml Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
databaseChangeLog:
- changeSet:
    id: add-event-application-column
    author: fletch
    changes:
    - sql:
        sql: |
          alter table event add column application varchar(255) generated always as (json ->> '$.application');
    - createIndex:
        tableName: event
        indexName: event_scope_application_timestamp_idx
        columns:
        - column:
            name: scope
        - column:
            name: application
        - column:
            name: timestamp
            descending: true
    - createIndex:
        tableName: event
        indexName: event_scope_ref_timestamp_idx
        columns:
        - column:
            name: scope
        - column:
            name: ref
        - column:
            name: timestamp
            descending: true
    - dropIndex:
        tableName: event
        indexName: event_uid_scope_timestamp_idx
    rollback:
    - sql:
        sql: |
          alter table event drop column application;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy