Add db-migrations-flyway-liquibase: Flyway vs Liquibase migrations, rollbacks and baselines on Spring Boot 4.1
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
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
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
|
||||
Reference in New Issue
Block a user