Skip to content

Commit 1fb9ba0

Browse files
committed
Merge pull request #140 from Orange-OpenSource/feature-liquibase
init liquibase
2 parents 20fa011 + 506b122 commit 1fb9ba0

File tree

4 files changed

+123
-1
lines changed

4 files changed

+123
-1
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ dependencies {
101101
compile "org.springframework.cloud:spring-cloud-spring-service-connector:$springCloudServiceConnectorVersion"
102102
compile "org.springframework.cloud:spring-cloud-cloudfoundry-connector:$springCloudCFConnectorVersion"
103103

104+
//liquibase
105+
compile "org.liquibase:liquibase-core:$liquibaseVersion"
106+
104107
}
105108

106109
sourceSets.main.compileClasspath += configurations.providedCompile

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ gradleCoverallsVersion=2.5.0
1818
cfClientLibCommitId = 4f3c645
1919
reactorStreamVersion = 2.5.0.BUILD-20160210.193010-335
2020
reactorCoreVersion = 2.5.0.BUILD-20160210.191749-340
21-
protobufVersion = 2.6.1
21+
protobufVersion = 2.6.1
22+
23+
liquibaseVersion = 3.4.2

src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ info.app.name=Autosleep
22
info.app.description=Application that put idle applications to sleep
33
info.app.version=@version@
44
endpoints.shutdown.enabled=false
5+
spring.jpa.hibernate.ddl-auto=none
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
databaseChangeLog:
2+
- changeSet:
3+
id: 1
4+
author: Arnaud Ruffin
5+
changes:
6+
- createTable:
7+
tableName: ApplicationBinding
8+
columns:
9+
- column:
10+
name: serviceBindingId
11+
type: VARCHAR(255)
12+
constraints:
13+
primaryKey: true
14+
nullable: false
15+
- column:
16+
name: applicationId
17+
type: VARCHAR(255)
18+
- column:
19+
name: serviceInstanceId
20+
type: VARCHAR(255)
21+
- createTable:
22+
tableName: ApplicationInfo
23+
columns:
24+
- column:
25+
name: uuid
26+
type: VARCHAR(40)
27+
constraints:
28+
primaryKey: true
29+
nullable: false
30+
- column:
31+
name: appState
32+
type: VARCHAR(255)
33+
- column:
34+
name: hibernateWorkaround
35+
type: INT
36+
constraints:
37+
nullable: false
38+
- column:
39+
name: lastCheck
40+
type: TINYBLOB
41+
- column:
42+
name: event_actee
43+
type: VARCHAR(255)
44+
- column:
45+
name: event_actor
46+
type: VARCHAR(255)
47+
- column:
48+
name: event_name
49+
type: VARCHAR(255)
50+
- column:
51+
name: event_time
52+
type: TINYBLOB
53+
- column:
54+
name: event_type
55+
type: VARCHAR(255)
56+
- column:
57+
name: log_message
58+
type: VARCHAR(255)
59+
- column:
60+
name: log_message_type
61+
type: VARCHAR(255)
62+
- column:
63+
name: log_source_id
64+
type: VARCHAR(255)
65+
- column:
66+
name: log_source_name
67+
type: VARCHAR(255)
68+
- column:
69+
name: log_time
70+
type: TINYBLOB
71+
- column:
72+
name: nextCheck
73+
type: TINYBLOB
74+
- column:
75+
name: states
76+
type: BLOB
77+
- column:
78+
name: name
79+
type: VARCHAR(255)
80+
changes:
81+
- createTable:
82+
tableName: SpaceEnrollerConfig
83+
columns:
84+
- column:
85+
name: id
86+
type: VARCHAR(255)
87+
constraints:
88+
primaryKey: true
89+
nullable: false
90+
- column:
91+
name: excludeFromAutoEnrollment
92+
type: TINYBLOB
93+
- column:
94+
name: forcedAutoEnrollment
95+
type: BIT(1)
96+
constraints:
97+
primaryKey: true
98+
nullable: false
99+
- column:
100+
name: idleDuration
101+
type: TINYBLOB
102+
- column:
103+
name: organizationId
104+
type: VARCHAR(255)
105+
- column:
106+
name: planId
107+
type: VARCHAR(255)
108+
- column:
109+
name: secret
110+
type: VARCHAR(255)
111+
- column:
112+
name: serviceDefinitionId
113+
type: VARCHAR(255)
114+
- column:
115+
name: spaceId
116+
type: VARCHAR(255)

0 commit comments

Comments
 (0)