-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.xml
More file actions
87 lines (87 loc) · 5.01 KB
/
init.xml
File metadata and controls
87 lines (87 loc) · 5.01 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<changeSet author="volodja (generated)" id="1478342874888-1">
<createSequence sequenceName="hibernate_sequence"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-2">
<createTable tableName="cityitem">
<column name="id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="name" type="VARCHAR(255)"/>
<column name="address" type="VARCHAR(255)"/>
<column name="latitude" type="numeric(19, 15)"/>
<column name="longitude" type="numeric(19, 15)"/>
</createTable>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-3">
<createTable tableName="map">
<column name="id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="name" type="VARCHAR(255)"/>
<column name="floor" type="BIGINT"/>
<column name="cityitem_id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="svg_id" type="BIGINT"/>
</createTable>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-4">
<createTable tableName="mapitem">
<column name="id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="name" type="VARCHAR(255)"/>
<column name="path" type="BIGINT"/>
<column name="map_id" type="BIGINT"/>
</createTable>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-5">
<createTable tableName="urlresource">
<column name="id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="url" type="VARCHAR(255)"/>
</createTable>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-6">
<createTable tableName="useraccount">
<column name="id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="email" type="VARCHAR(255)"/>
<column name="firstname" type="VARCHAR(255)"/>
<column name="lastname" type="VARCHAR(255)"/>
<column name="password" type="VARCHAR(255)"/>
<column name="signinprovider" type="INT"/>
</createTable>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-7">
<addPrimaryKey columnNames="id" constraintName="cityitem_pkey" tableName="cityitem"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-8">
<addPrimaryKey columnNames="id" constraintName="map_pkey" tableName="map"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-9">
<addPrimaryKey columnNames="id" constraintName="mapitem_pkey" tableName="mapitem"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-10">
<addPrimaryKey columnNames="id" constraintName="urlresource_pkey" tableName="urlresource"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-11">
<addPrimaryKey columnNames="id" constraintName="useraccount_pkey" tableName="useraccount"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-12">
<addUniqueConstraint columnNames="map_id, path" constraintName="uk47r1x45thjj4mxi1knmmyqmly" tableName="mapitem"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-13">
<addForeignKeyConstraint baseColumnNames="cityitem_id" baseTableName="map" constraintName="fk2w99if891p1fi0elica37led0" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="cityitem"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-14">
<addForeignKeyConstraint baseColumnNames="svg_id" baseTableName="map" constraintName="fk5yh0fvpt97p6qe3o8rq3xia39" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="urlresource"/>
</changeSet>
<changeSet author="volodja (generated)" id="1478342874888-15">
<addForeignKeyConstraint baseColumnNames="map_id" baseTableName="mapitem" constraintName="fkbpoqisaftg5aitcg23nvof39e" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id" referencedTableName="map"/>
</changeSet>
</databaseChangeLog>