Skip to content

Commit e5614c3

Browse files
committed
Database (v5_0): Added SINGLE Table to manage sequence number
* Cross database support: MariaDB, MySQL(Deprecate support), HSQLDB
1 parent 63ca9ac commit e5614c3

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

kriolos-opos-app/src/main/resources/pos_liquidbase/db-changelog-master.xml

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212

1313
<include file="pos_liquidbase/db-changelog-v4_5.xml"/>
1414
<include file="pos_liquidbase/db-changelog-v4_5__LOAD.xml"/>
15+
<include file="pos_liquidbase/db-changelog-v5_0.xml"/>
1516

1617
</databaseChangeLog>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
2+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
3+
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
4+
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext
7+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
8+
http://www.liquibase.org/xml/ns/pro
9+
http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.8.xsd
10+
http://www.liquibase.org/xml/ns/dbchangelog
11+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.8.xsd">
12+
<changeSet author="pauloborges (nanual)" id="20230502-01">
13+
<createTable tableName="seqnumber">
14+
<column name="tablename" type="VARCHAR(100)">
15+
<constraints nullable="false" primaryKey="true"/>
16+
</column>
17+
<column defaultValueNumeric="0" name="seqnum" type="INT">
18+
<constraints nullable="false"/>
19+
</column>
20+
</createTable>
21+
</changeSet>
22+
</databaseChangeLog>

0 commit comments

Comments
 (0)