Files
microservice-b/src/main/resources/db/changelog/changes/oracleLiquibases/liquibase-1.2.xml

30 lines
1.6 KiB
XML
Executable File

<?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="test2" tableName="PERSON" remarks="اشخاص">
<column name="ID" type="NUMBER(19)" remarks="شناسه اشخاص">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_PERSON_ID"/>
</column>
<column name="FIRST_NAME" type="VARCHAR2(255)" remarks="نام"/>
<column name="LAST_NAME" type="VARCHAR2(255)" remarks="نام خانوادگی"/>
</createTable>
</changeSet>
<changeSet id="1.2-2-mmad" author="mmad">
<createTable schemaName="test2" tableName="USER_SNAPSHOT" remarks="کاربر">
<column name="ID" type="NUMBER(19)" remarks="شناسه کاربر">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_USER_ID"/>
</column>
<column name="user_name" type="VARCHAR2(255)" remarks="نام کاربری"/>
<column name="email" type="VARCHAR2(255)" remarks="ایمیل"/>
</createTable>
</changeSet>
</databaseChangeLog>