Fix liquibase for when there are existing logical flows in table
author="dwatkins">
<addColumn tableName="logical_flow">
<column name="last_updated_at"
- type="TIMESTAMP">
+ type="TIMESTAMP"
+ defaultValueComputed="${now.value}">
<constraints nullable="false"></constraints>
</column>
<column name="last_updated_by"
type="${name.type}">
- <constraints nullable="false"/>
</column>
</addColumn>
+
+ <sql>
+ update logical_flow
+ set last_updated_by = 'admin'
+ </sql>
+
+ <addNotNullConstraint columnDataType="${name.type}"
+ columnName="last_updated_by"
+ tableName="logical_flow"/>
+
</changeSet>
</databaseChangeLog>
