-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-changelog.yml
56 lines (56 loc) · 1.42 KB
/
example-changelog.yml
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
---
databaseChangeLog:
- preConditions:
- runningAs:
username: root
- changeSet:
id: 1
author: kyawswar
changes:
- tagDatabase:
tag: version_1.0
- createTable:
tableName: person
columns:
- column:
name: id
type: int
autoIncrement: true
constraints:
primaryKey: true
nullable: false
- column:
name: firstname
type: varchar(50)
- column:
name: lastname
type: varchar(50)
constraints:
nullable: false
- column:
name: state
type: char(2)
- changeSet:
id: 2
author: kyawswar
changes:
- tagDatabase:
tag: version_1.1
- addColumn:
tableName: person
columns:
- column:
name: username
type: varchar(8)
- changeSet:
id: 3
author: kyawswar
changes:
- tagDatabase:
tag: version_1.2
- addLookupTable:
existingTableName: person
existingColumnName: state
newTableName: state
newColumnName: id
newColumnDataType: char(2)