1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
---|
2 | <databaseChangeLog logicalFilePath="database-schema.xml" 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"> |
---|
3 | <changeSet author="fmguler" id="init"> |
---|
4 | </changeSet> |
---|
5 | <changeSet author="fmguler" id="0"> |
---|
6 | <tagDatabase tag="tag-init"/> |
---|
7 | </changeSet> |
---|
8 | <!-- TEST SCHEMA >> --> |
---|
9 | <changeSet author="fmguler" id="1"> |
---|
10 | <createTable schemaName="public" tableName="some_domain_object"> |
---|
11 | <column autoIncrement="true" name="id" type="serial"> |
---|
12 | <constraints nullable="false" primaryKey="true" primaryKeyName="some_domain_object_pkey"/> |
---|
13 | </column> |
---|
14 | <column name="name" type="VARCHAR(100)"/> |
---|
15 | <column name="description" type="TEXT(2147483647)"/> |
---|
16 | <column name="date" type="TIMESTAMP WITHOUT TIME ZONE"/> |
---|
17 | <column name="another_domain_object_id" type="int"/> |
---|
18 | </createTable> |
---|
19 | </changeSet> |
---|
20 | <changeSet author="fmguler" id="2"> |
---|
21 | <createTable schemaName="public" tableName="another_domain_object"> |
---|
22 | <column autoIncrement="true" name="id" type="serial"> |
---|
23 | <constraints nullable="false" primaryKey="true" primaryKeyName="another_domain_object_pkey"/> |
---|
24 | </column> |
---|
25 | <column name="name" type="VARCHAR(100)"/> |
---|
26 | <column name="description" type="TEXT(2147483647)"/> |
---|
27 | <column name="date" type="TIMESTAMP WITHOUT TIME ZONE"/> |
---|
28 | <column name="some_domain_object_id" type="int"/> |
---|
29 | </createTable> |
---|
30 | </changeSet> |
---|
31 | <changeSet author="fmguler" id="3"> |
---|
32 | <tagDatabase tag="tag-no-data"/> |
---|
33 | </changeSet> |
---|
34 | <changeSet author="fmguler" id="4"> |
---|
35 | <insert schemaName="public" tableName="some_domain_object"> |
---|
36 | <column name="name" value="sdo1"/> |
---|
37 | <column name="description" value="sdo desc1"/> |
---|
38 | <column name="date" value="2010-10-13"/> |
---|
39 | <column name="another_domain_object_id" value="1"/> |
---|
40 | </insert> |
---|
41 | <rollback> |
---|
42 | delete from some_domain_object; |
---|
43 | </rollback> |
---|
44 | </changeSet> |
---|
45 | <changeSet author="fmguler" id="5"> |
---|
46 | <insert schemaName="public" tableName="another_domain_object"> |
---|
47 | <column name="name" value="ado1"/> |
---|
48 | <column name="description" value="ado desc1"/> |
---|
49 | <column name="date" value="2011-01-19"/> |
---|
50 | <column name="some_domain_object_id" value="1"/> |
---|
51 | </insert> |
---|
52 | <insert schemaName="public" tableName="another_domain_object"> |
---|
53 | <column name="name" value="ado2"/> |
---|
54 | <column name="description" value="ado desc2"/> |
---|
55 | <column name="date" value="2011-02-09"/> |
---|
56 | <column name="some_domain_object_id" value="1"/> |
---|
57 | </insert> |
---|
58 | <rollback> |
---|
59 | delete from another_domain_object; |
---|
60 | </rollback> |
---|
61 | </changeSet> |
---|
62 | <changeSet author="fmguler" id="6"> |
---|
63 | <tagDatabase tag="tag-data"/> |
---|
64 | </changeSet> |
---|
65 | <!-- << TEST SCHEMA --> |
---|
66 | </databaseChangeLog> |
---|