initial commit this project for test architecture
This commit is contained in:
19
src/main/resources/db/changelog/changes/liquibase-1.1.xml
Executable file
19
src/main/resources/db/changelog/changes/liquibase-1.1.xml
Executable file
@ -0,0 +1,19 @@
|
||||
<?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.8.xsd">
|
||||
|
||||
<property name="now" value="UNIX_TIMESTAMP()" dbms="mysql"/>
|
||||
<property name="now" value="sysdate" dbms="oracle"/>
|
||||
<property name="now" value="now()" dbms="postgresql"/>
|
||||
|
||||
<changeSet id="1.1-1-mmad" author="mmad">
|
||||
<insert schemaName="testapp" tableName="person">
|
||||
<column name="id" value="1"/>
|
||||
<column name="first_name" value="mohammad"/>
|
||||
<column name="last_name" value="Reza"/>
|
||||
</insert>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
21
src/main/resources/db/changelog/changes/liquibase-1.2.xml
Executable file
21
src/main/resources/db/changelog/changes/liquibase-1.2.xml
Executable file
@ -0,0 +1,21 @@
|
||||
<?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.8.xsd">
|
||||
|
||||
<property name="now" value="UNIX_TIMESTAMP()" dbms="mysql"/>
|
||||
<property name="now" value="sysdate" dbms="oracle"/>
|
||||
<property name="now" value="now()" dbms="postgresql"/>
|
||||
|
||||
<changeSet id="1.2-1-mmad" author="mmad">
|
||||
<createTable schemaName="testapp" tableName="person" remarks="اشخاص">
|
||||
<column name="id" type="bigint" remarks="شناسه اشخاص ">
|
||||
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_person_id"/>
|
||||
</column>
|
||||
<column name="first_name" type="VARCHAR(255)" remarks="نام"/>
|
||||
<column name="last_name" type="VARCHAR(255)" remarks="نام خانوادگی"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
10
src/main/resources/db/changelog/liquibase-master.xml
Executable file
10
src/main/resources/db/changelog/liquibase-master.xml
Executable file
@ -0,0 +1,10 @@
|
||||
<?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.8.xsd">
|
||||
|
||||
<include file="changes/liquibase-1.2.xml" relativeToChangelogFile="true"/>
|
||||
<include file="changes/liquibase-1.1.xml" relativeToChangelogFile="true"/>
|
||||
|
||||
</databaseChangeLog>
|
Reference in New Issue
Block a user