forked from FIWARE/context.Orion-LD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timescale-changelog_v1.xml
98 lines (93 loc) · 4.02 KB
/
timescale-changelog_v1.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
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
88
89
90
91
92
93
94
95
96
97
98
<?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">
<changeSet author="[email protected]" id="v1_step_0">
<comment>Create a combined primary key for the entities table.</comment>
<dropPrimaryKey constraintName="entities_pkey"
dropIndex="true"
schemaName="public"
tableName="entities"/>
<addPrimaryKey
columnNames="instanceid, ts"
constraintName="entities_pkey"
schemaName="public"
tableName="entities"
validate="true"/>
<rollback>
<dropPrimaryKey constraintName="entities_pkey"
dropIndex="true"
schemaName="public"
tableName="entities"/>
<addPrimaryKey
columnNames="instanceid"
constraintName="entities_pkey"
schemaName="public"
tableName="entities"
validate="true"/>
</rollback>
</changeSet>
<changeSet author="[email protected]" id="v1_step_1">
<comment>Create a combined primary key for the attributes table.</comment>
<dropPrimaryKey constraintName="attributes_pkey"
dropIndex="true"
schemaName="public"
tableName="attributes"/>
<addPrimaryKey
columnNames="instanceid, ts"
constraintName="attributes_pkey"
schemaName="public"
tableName="attributes"
validate="true"/>
<rollback>
<dropPrimaryKey constraintName="attributes_pkey"
dropIndex="true"
schemaName="public"
tableName="attributes"/>
<addPrimaryKey
columnNames="instanceid"
constraintName="attributes_pkey"
schemaName="public"
tableName="attributes"
validate="true"/>
</rollback>
</changeSet>
<changeSet author="[email protected]" id="v1_step_2">
<comment>Create a combined primary key for the subattributes table.</comment>
<dropPrimaryKey constraintName="subattributes_pkey"
dropIndex="true"
schemaName="public"
tableName="subattributes"/>
<addPrimaryKey
columnNames="instanceid, ts"
constraintName="subattributes_pkey"
schemaName="public"
tableName="subattributes"
validate="true"/>
<rollback>
<dropPrimaryKey constraintName="subattributes_pkey"
dropIndex="true"
schemaName="public"
tableName="subattributes"/>
<addPrimaryKey
columnNames="instanceid"
constraintName="subattributes_pkey"
schemaName="public"
tableName="subattributes"
validate="true"/>
</rollback>
</changeSet>
<changeSet author="[email protected]" id="v1_step_3">
<comment>Create attribute-id index for subattributes table.</comment>
<createIndex indexName="subattributes_attributeid_index" tableName="subattributes">
<column name="attrinstanceid"/>
</createIndex>
<rollback>
<dropIndex indexName="subattributes_attributeid_index"
schemaName="public"
tableName="subattributes"/>
</rollback>
</changeSet>
</databaseChangeLog>