Skip to content

Commit 3d4f797

Browse files
authored
Merge pull request #33 from jasonlyle88/develop
Version 1.08.00
2 parents 2b3c1ce + ff3af79 commit 3d4f797

13 files changed

+177
-13
lines changed

source/lb_unit_tests/context-filtering-property.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<changeSet
2020
id="context-filtering-property"
2121
author="jlyle"
22+
runOnChange="true"
23+
runAlways="true"
2224
>
2325
<sql endDelimiter="/">
2426
begin

source/lb_unit_tests/property-cannot-be-reset.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
<changeSet
1919
id="context-filtering-property"
2020
author="jlyle"
21+
runOnChange="true"
22+
runAlways="true"
2123
>
2224
<sql endDelimiter="/">
2325
begin
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns:ora="http://www.oracle.com/xml/ns/dbchangelog-ext"
6+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.17.xsd"
7+
>
8+
<changeSet
9+
id="relative-to-changelog-works-for-runApexScript-with-child-script-drop-table-setup"
10+
author="jlyle"
11+
runOnChange="true"
12+
runAlways="true"
13+
>
14+
<preConditions onFail="CONTINUE">
15+
<tableExists tableName="lb_ut_rtcwfraswcs"/>
16+
</preConditions>
17+
<dropTable tableName="lb_ut_rtcwfraswcs"/>
18+
</changeSet>
19+
20+
<changeSet
21+
id="relative-to-changelog-works-for-runApexScript-with-child-script-create-table"
22+
author="jlyle"
23+
runOnChange="true"
24+
runAlways="true"
25+
>
26+
<createTable tableName="lb_ut_rtcwfraswcs">
27+
<column name="id" type="int"/>
28+
</createTable>
29+
</changeSet>
30+
31+
<changeSet
32+
id="relative-to-changelog-works-for-runApexScript-with-child-script"
33+
author="jlyle"
34+
runOnChange="true"
35+
runAlways="true"
36+
>
37+
<ora:runApexScript ownerName="jlyle" sourceType="FILE" objectType="SCRIPT" objectName="test_script" relativeToChangelogFile="true" >
38+
<ora:source>
39+
relative-to-changelog-works-for-runApexScript-with-child-scripts/script.sql
40+
</ora:source>
41+
</ora:runApexScript>
42+
</changeSet>
43+
44+
<changeSet
45+
id="relative-to-changelog-works-for-runApexScript-with-child-script-verify"
46+
author="jlyle"
47+
runOnChange="true"
48+
runAlways="true"
49+
>
50+
<sql endDelimiter="/">
51+
declare
52+
l_count number;
53+
begin
54+
select count(1)
55+
into l_count
56+
from lb_ut_rtcwfraswcs;
57+
58+
if l_count != 1 then
59+
raise_application_error(-20001, 'Failed');
60+
end if;
61+
end;
62+
/
63+
</sql>
64+
</changeSet>
65+
66+
<changeSet
67+
id="relative-to-changelog-works-for-runApexScript-with-child-script-drop-table-cleanup"
68+
author="jlyle"
69+
runOnChange="true"
70+
runAlways="true"
71+
>
72+
<preConditions onFail="CONTINUE">
73+
<tableExists tableName="lb_ut_rtcwfraswcs"/>
74+
</preConditions>
75+
<dropTable tableName="lb_ut_rtcwfraswcs"/>
76+
</changeSet>
77+
</databaseChangeLog>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@@ "sub/subscript1.sql"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
insert into lb_ut_rtcwfraswcs(id)
2+
values(1);
3+
4+
commit;

source/lb_unit_tests/relative-to-changelog-works-for-runApexScript.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<changeSet
99
id="relative-to-changelog-works-for-runApexScript"
1010
author="jlyle"
11+
runOnChange="true"
12+
runAlways="true"
1113
>
1214
<ora:runApexScript ownerName="jlyle" sourceType="FILE" objectType="SCRIPT" objectName="test_script" relativeToChangelogFile="true" >
1315
<ora:source>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns:ora="http://www.oracle.com/xml/ns/dbchangelog-ext"
6+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.17.xsd"
7+
>
8+
<changeSet
9+
id="relative-to-changelog-works-for-runOracleScript-with-child-script-drop-table-setup"
10+
author="jlyle"
11+
runOnChange="true"
12+
runAlways="true"
13+
>
14+
<preConditions onFail="CONTINUE">
15+
<tableExists tableName="lb_ut_rtcwfroswcs"/>
16+
</preConditions>
17+
<dropTable tableName="lb_ut_rtcwfroswcs"/>
18+
</changeSet>
19+
20+
<changeSet
21+
id="relative-to-changelog-works-for-runOracleScript-with-child-script-create-table"
22+
author="jlyle"
23+
runOnChange="true"
24+
runAlways="true"
25+
>
26+
<createTable tableName="lb_ut_rtcwfroswcs">
27+
<column name="id" type="int"/>
28+
</createTable>
29+
</changeSet>
30+
31+
<changeSet
32+
id="relative-to-changelog-works-for-runOracleScript-with-child-script"
33+
author="jlyle"
34+
runOnChange="true"
35+
runAlways="true"
36+
>
37+
<ora:runOracleScript ownerName="jlyle" sourceType="FILE" objectType="SCRIPT" objectName="test_script" relativeToChangelogFile="true" >
38+
<ora:source>
39+
relative-to-changelog-works-for-runOracleScript-with-child-scripts/script.sql
40+
</ora:source>
41+
</ora:runOracleScript>
42+
</changeSet>
43+
44+
<changeSet
45+
id="relative-to-changelog-works-for-runOracleScript-with-child-script-verify"
46+
author="jlyle"
47+
runOnChange="true"
48+
runAlways="true"
49+
>
50+
<sql endDelimiter="/">
51+
declare
52+
l_count number;
53+
begin
54+
select count(1)
55+
into l_count
56+
from lb_ut_rtcwfroswcs;
57+
58+
if l_count != 1 then
59+
raise_application_error(-20001, 'Failed');
60+
end if;
61+
end;
62+
/
63+
</sql>
64+
</changeSet>
65+
66+
<changeSet
67+
id="relative-to-changelog-works-for-runOracleScript-with-child-script-drop-table-cleanup"
68+
author="jlyle"
69+
runOnChange="true"
70+
runAlways="true"
71+
>
72+
<preConditions onFail="CONTINUE">
73+
<tableExists tableName="lb_ut_rtcwfroswcs"/>
74+
</preConditions>
75+
<dropTable tableName="lb_ut_rtcwfroswcs"/>
76+
</changeSet>
77+
</databaseChangeLog>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@@ "sub/subscript1.sql"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
insert into lb_ut_rtcwfroswcs(id)
2+
values(1);
3+
4+
commit;

source/lb_unit_tests/relative-to-changelog-works-for-runOracleScript.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<changeSet
99
id="relative-to-changelog-works-for-runOracleScript"
1010
author="jlyle"
11+
runOnChange="true"
12+
runAlways="true"
1113
>
1214
<ora:runOracleScript ownerName="jlyle" sourceType="FILE" objectType="SCRIPT" objectName="test_script" relativeToChangelogFile="true" >
1315
<ora:source>

0 commit comments

Comments
 (0)