Companion code for the Flyway vs Liquibase article: checksum validation, out-of-order and repeatable migrations, baselining an existing schema, Flyway Community's undo/diff/deploy stubs, concurrent-startup locking for both tools, Liquibase changeset identity and rollback (auto-generated vs explicit), a verified Liquibase 5.0.3 filename-caching defect, the new OSS license service, the FSL license change, and running both tools against one database. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q6XdRjtsp4862EM44T7i9a
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
databaseChangeLog:
|
|
- changeSet:
|
|
id: 1-create-product
|
|
author: ankurm
|
|
changes:
|
|
- createTable:
|
|
tableName: product
|
|
columns:
|
|
- column:
|
|
name: id
|
|
type: bigint
|
|
autoIncrement: true
|
|
constraints:
|
|
primaryKey: true
|
|
- column:
|
|
name: sku
|
|
type: varchar(64)
|
|
constraints:
|
|
nullable: false
|
|
unique: true
|
|
- column:
|
|
name: price_cents
|
|
type: bigint
|
|
constraints:
|
|
nullable: false
|
|
- changeSet:
|
|
id: 2-seed-product
|
|
author: ankurm
|
|
changes:
|
|
- insert:
|
|
tableName: product
|
|
columns:
|
|
- column:
|
|
name: sku
|
|
value: WIDGET-1
|
|
- column:
|
|
name: price_cents
|
|
valueNumeric: 1999
|