1
liqibase中的CHANGESET執行依賴於它在xml中的位置嗎?例如,如果我有一個在liquibase腳本如下在隨後的更新中,liquibase變更集排序更改是否更改?
<changeSet id="20140211_001" author="test">
<createTable tableName="alarm_notification_archive">
<column name="id" type="bigint">
<constraints nullable="false" />
</column>
<column name="event_timestamp" type="timestamp" defaultValue="0000-00-00 00:00:00">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20140210_001" author="test">
<sql>ALTER TABLE `notification_archive` ADD COLUMN
`is_Alarm_Outstanding` BOOLEAN DEFAULT FALSE</sql>
<rollback>
<sql>ALTER TABLE notification_archive DROP COLUMN
is_Alarm_Outstanding
</sql>
</rollback>
</changeSet>
我的理解是變更排序是 1)20140211_001 2)20140210_001
如果我現在在添加其他變更1和2之間
<changeSet id="20140211_001" author="test">
<createTable tableName="alarm_notification_archive">
<column name="id" type="bigint">
<constraints nullable="false" />
</column>
<column name="event_timestamp" type="timestamp" defaultValue="0000-00-00 00:00:00">
<constraints nullable="false" />
</column>
</createTable>
</changeSet>
<changeSet id="20140212_001" author="test">
<sql>ALTER TABLE `notification_archive` ADD COLUMN
`is_Alarm_Outstanding` BOOLEAN DEFAULT FALSE</sql>
<rollback>
<sql>ALTER TABLE alarm_notification_archive DROP COLUMN
is_Alarm_Outstanding
</sql>
</rollback>
</changeSet>
<changeSet id="20140210_001" author="test">
<sql>ALTER TABLE `notification_archive` ADD COLUMN
`is_Alarm_Outstanding` BOOLEAN DEFAULT FALSE</sql>
<rollback>
<sql>ALTER TABLE alarm_notification_archive DROP COLUMN
is_Alarm_Outstanding
</sql>
</rollback>
</changeSet>
將新變更的執行順序是 1)20140211_001 2)20140212_001 3)20140210_001