forked from openmrs/openmrs-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliquibase-mvp-data-18x.xml
71 lines (58 loc) · 3.23 KB
/
liquibase-mvp-data-18x.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<changeSet id="20120315-1000" author="standalone" dbms="mysql">
<comment>Preparing schema for adding mvp data</comment>
<sql>SET FOREIGN_KEY_CHECKS=0</sql>
<!-- avoid the Can't create table 'openmrs.#sql-564_b' (errno: 150) for Migration failed for change set liquibase-update-to-latest.xml::200805281223::bmckown: -->
<createTable tableName="concept_complex">
<column name="concept_id" type="int">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="handler" type="varchar(255)"/>
</createTable>
<sql>SET FOREIGN_KEY_CHECKS=1</sql>
</changeSet>
<changeSet id="20120315-1100" author="standalone" dbms="mysql">
<comment>Adding mvp data</comment>
<sqlFile path="mvp-data.sql" encoding="UTF-8" />
<!-- avoid the Unknown column 'voided' in 'where clause' for Migration failed for change set liquibase-update-to-latest.xml::20090316-1008::vanand -->
<addColumn tableName="concept_source">
<column name="voided" type="smallint" />
</addColumn>
<!-- avoid Incorrect table definition; there can be only one auto column and it must be defined as a key for Migration failed for change set liquibase-update-to-latest.xml::20090414-0805::bwolfe -->
<modifyColumn tableName="concept_set">
<column name="concept_set_id" type="INT"/>
</modifyColumn>
<!-- avoid Duplicate column name 'concept_set_id' for Migration failed for change set liquibase-update-to-latest.xml::20090414-0806::bwolfe -->
<sql>
insert into DATABASECHANGELOG values('20090414-0806', 'bwolfe',
'liquibase-update-to-latest.xml', '2012-03-15 11:00:00',
'3c192287a93261df2ef571d55d91a5e', 'Custom SQL',
'Deleting duplicate concept word keys', NULL, '1.9.4')
</sql>
<!-- avoid Duplicate key name 'idx_concept_set_concept' for Migration failed for change set liquibase-update-to-latest.xml::20090414-0807::bwolfe -->
<sql>
insert into DATABASECHANGELOG values('20090414-0807', 'bwolfe',
'liquibase-update-to-latest.xml', '2012-03-15 11:00:00',
'548ba564f1cf1a5e4353bade7d0a71f', 'Custom SQL',
'Deleting duplicate concept word keys', NULL, '1.9.4')
</sql>
<!-- Skip this changeset since it is unnecessary and takes too long -->
<sql>
insert into DATABASECHANGELOG values('200905150821', 'bwolfe',
'liquibase-update-to-latest.xml', '2012-03-15 11:00:00',
'd6dedef195a69f62fd1c73adcfd93146', 'Custom SQL',
'Deleting duplicate concept word keys', NULL, '1.9.4')
</sql>
<!-- avoid Duplicate column name 'retired' Migration failed for change set liquibase-update-to-latest.xml::20090907-3::Knoll_Frank -->
<sql>
insert into DATABASECHANGELOG values('20090907-3', 'Knoll_Frank',
'liquibase-update-to-latest.xml', '2012-03-15 11:00:00',
'627e3e7cc7d9a2aece268fa93bf88', 'Custom SQL',
'Deleting duplicate concept word keys', NULL, '1.9.4')
</sql>
</changeSet>
</databaseChangeLog>