This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
db.changelog-3.1.xml
86 lines (78 loc) · 3.95 KB
/
db.changelog-3.1.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
<?xml version="1.0" 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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="1" author="pahuang@redhat.com">
<comment>Add HTextFlowTargetReviewComment table to support user comments.</comment>
<createTable tableName="HTextFlowTargetReviewComment">
<column name="id" type="bigint" autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="creationDate" type="DATETIME">
<constraints nullable="false" />
</column>
<column name="lastChanged" type="DATETIME">
<constraints nullable="false" />
</column>
<column name="commenter_id" type="bigint">
<constraints nullable="false"/>
</column>
<column name="target_id" type="bigint">
<constraints nullable="false"/>
</column>
<column name="comment" type="longtext">
<constraints nullable="false"/>
</column>
<column name="targetVersion" type="int">
<constraints nullable="false"/>
</column>
<column name="versionNum" type="int">
<constraints nullable="false"/>
</column>
</createTable>
<addForeignKeyConstraint constraintName="FKtarget_review_commenter"
referencedTableName="HPerson" referencedColumnNames="id"
baseTableName="HTextFlowTargetReviewComment" baseColumnNames="commenter_id"/>
<addForeignKeyConstraint constraintName="FKtarget_review_comment"
referencedTableName="HTextFlowTarget" referencedColumnNames="id"
baseTableName="HTextFlowTargetReviewComment" baseColumnNames="target_id"/>
</changeSet>
<changeSet author="aeng@redhat.com" id="2">
<comment>Add a flag indicating when a member of a Language team (locale) is a team reviewer.</comment>
<addColumn tableName="HLocale_Member">
<column name="isReviewer" type="boolean" defaultValueBoolean="false">
<constraints nullable="false" />
</column>
</addColumn>
</changeSet>
<changeSet author="aeng@redhat.com" id="3">
<comment>Add a flag indicating when a member of a Language team (locale) is a team translator.</comment>
<addColumn tableName="HLocale_Member">
<column name="isTranslator" type="boolean" defaultValueBoolean="false">
<constraints nullable="false" />
</column>
</addColumn>
</changeSet>
<changeSet author="aeng@redhat.com" id="4" >
<comment>Make current locale members and coordinator as translator</comment>
<sql>
update HLocale_Member set isTranslator = 1;
</sql>
</changeSet>
<changeSet author="damason@redhat.com" id="1">
<comment>Add contentLocation to HRawDocument</comment>
<addColumn tableName="HRawDocument">
<column name="contentLocation" type="longtext" />
</addColumn>
</changeSet>
<changeSet author="damason@redhat.com" id="2">
<comment>Initialise contentLocation with id, can guarantee uniqueness during migration</comment>
<sql>
update HRawDocument set contentLocation = id
</sql>
<addNotNullConstraint tableName="HRawDocument" columnName="contentLocation" columnDataType="longtext" />
</changeSet>
</databaseChangeLog>