File tree Expand file tree Collapse file tree 3 files changed +44
-3
lines changed Expand file tree Collapse file tree 3 files changed +44
-3
lines changed Original file line number Diff line number Diff line change 20
20
<maven .compiler.source>1.8</maven .compiler.source>
21
21
<maven .compiler.target>1.8</maven .compiler.target>
22
22
<ehcache .version>2.7.4</ehcache .version>
23
+ <activejdbc .version>2.2</activejdbc .version>
24
+ <mysqlconnector .version>8.0.17</mysqlconnector .version>
23
25
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
24
26
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
27
+ <environments >development</environments >
25
28
<app .main.class>com.lyft.data.gateway.ha.HaGatewayLauncher</app .main.class>
26
29
</properties >
27
30
45
48
<dependency >
46
49
<groupId >mysql</groupId >
47
50
<artifactId >mysql-connector-java</artifactId >
48
- <version >8.0.17 </version >
51
+ <version >${mysqlconnector.version} </version >
49
52
</dependency >
50
53
<!-- Test deps -->
51
54
<dependency >
62
65
<dependency >
63
66
<groupId >org.javalite</groupId >
64
67
<artifactId >activejdbc</artifactId >
65
- <version >2.2 </version >
68
+ <version >${activejdbc.version} </version >
66
69
</dependency >
67
70
<dependency >
68
71
<groupId >net.sf.ehcache</groupId >
132
135
</execution >
133
136
</executions >
134
137
</plugin >
138
+ <plugin >
139
+ <groupId >org.javalite</groupId >
140
+ <artifactId >db-migrator-maven-plugin</artifactId >
141
+ <version >${activejdbc.version} </version >
142
+ <configuration >
143
+ <configFile >${project.basedir} /src/migrations/database.properties</configFile >
144
+ <environments >${environments} </environments >
145
+ </configuration >
146
+ <dependencies >
147
+ <dependency >
148
+ <groupId >mysql</groupId >
149
+ <artifactId >mysql-connector-java</artifactId >
150
+ <version >${mysqlconnector.version} </version >
151
+ </dependency >
152
+ </dependencies >
153
+ </plugin >
135
154
</plugins >
136
155
</build >
137
- </project >
156
+ </project >
Original file line number Diff line number Diff line change
1
+ development.driver =com.mysql.cj.jdbc.Driver
2
+ development.username =root
3
+ development.password =root123
4
+ development.url =jdbc:mysql://127.0.0.1:3306/prestogateway
Original file line number Diff line number Diff line change
1
+ CREATE DATABASE prestogateway ;
2
+
3
+ CREATE TABLE IF NOT EXISTS gateway_backend (
4
+ name VARCHAR (256 ) PRIMARY KEY ,
5
+ routing_group VARCHAR (256 ),
6
+ backend_url VARCHAR (256 ),
7
+ active BOOLEAN
8
+ );
9
+
10
+ CREATE TABLE IF NOT EXISTS query_history (
11
+ query_id VARCHAR (256 ) PRIMARY KEY ,
12
+ query_text VARCHAR (256 ),
13
+ created bigint ,
14
+ backend_url VARCHAR (256 ),
15
+ user_name VARCHAR (256 ),
16
+ source VARCHAR (256 )
17
+ );
18
+ CREATE INDEX query_history_created_idx ON query_history(created);
You can’t perform that action at this time.
0 commit comments