-
-
Notifications
You must be signed in to change notification settings - Fork 918
/
20150805124838_added_entity_BankAccount.xml
41 lines (35 loc) · 1.75 KB
/
20150805124838_added_entity_BankAccount.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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.1.xsd">
<property name="now" value="now()" dbms="mysql,h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>
<property name="now" value="sysdate" dbms="oracle"/>
<property name="autoIncrement" value="true" dbms="mysql,h2,postgresql"/>
<property name="autoIncrement" value="false" dbms="oracle"/>
<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle"/>
<!--
Added the entity BankAccount.
-->
<changeSet id="20150805124838" author="jhipster">
<createTable tableName="BANK_ACCOUNT">
<column name="id" type="bigint" autoIncrement="${autoIncrement}" >
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="varchar(255)">
<constraints nullable="false" />
</column>
<column name="balance" type="decimal(10,2)">
<constraints nullable="false" />
</column>
<column name="user_id" type="bigint"/>
</createTable>
<addForeignKeyConstraint baseColumnNames="user_id"
baseTableName="BANK_ACCOUNT"
constraintName="fk_bankaccount_user_id"
referencedColumnNames="id"
referencedTableName="JHI_USER"/>
</changeSet>
</databaseChangeLog>