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

db.changelog.20210503-separate-delivery-config-and-artifact-on-lifecycle-event.yml Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
databaseChangeLog:
- changeSet:
    id: separate-delivery-config-and-artifact-on-lifecycle-event
    author: fletch
    changes:
    - addColumn:
        tableName: lifecycle_event
        columns:
        - column:
            name: artifact_reference
            type: varchar(255)
            afterColumn: scope
        - column:
            name: delivery_config_name
            type: varchar(255)
            afterColumn: scope
    - sql:
        sql: |
          update lifecycle_event
          set lifecycle_event.delivery_config_name = substring_index(lifecycle_event.ref, ':', 1)
          ,   lifecycle_event.artifact_reference = substring_index(lifecycle_event.ref, ':', -1);
    - addNotNullConstraint:
        tableName: lifecycle_event
        columnName: delivery_config_name
        columnDataType: varchar(255)
    - addNotNullConstraint:
        tableName: lifecycle_event
        columnName: artifact_reference
        columnDataType: varchar(255)
    - dropColumn:
        tableName: lifecycle_event
        columnName: ref




© 2015 - 2024 Weber Informatics LLC | Privacy Policy