Liquibase and Source Control : Changes to Scripts Over Time
A discussion of how to manage changes to scripts over time with Liquibase.
oracle miscconfigurationintermediate
by OracleDba
14 views
A discussion of how to manage changes to scripts over time with Liquibase.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="tim"
id="amend_pay_function_v1"
runOnChange="true" failOnError="false">
<sqlFile dbms="oracle"
endDelimiter=";"
path="../scripts/amend_pay_function.sql"
relativeToChangelogFile="true"
splitStatements="false"
stripComments="false"/>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="tim"
id="amend_pay_function_v2"
runOnChange="true" failOnError="false">
<sqlFile dbms="oracle"
endDelimiter=";"
path="../scripts/amend_pay_function.sql"
relativeToChangelogFile="true"
splitStatements="false"
stripComments="false"/>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
... Lots of other changes ...
<include file="./amend_pay_function_2020_01_01.xml" relativeToChangelogFile="true"/>
... Lots of other changes ...
<include file="./amend_pay_function_2020_04_01.xml" relativeToChangelogFile="true"/>
... Lots of other changes ...
</databaseChangeLog>123
UPDATE employees
SET pay = amend_pay_function(pay);
COMMIT;Please to add comments
No comments yet. Be the first to comment!