We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f259a commit e58cf5bCopy full SHA for e58cf5b
src/main/resources/application.properties
@@ -0,0 +1,8 @@
1
+# MySQL properties
2
+spring.datasource.url=jdbc:mysql://localhost:3306/MYSQL_DEMO
3
+spring.datasource.username=
4
+spring.datasource.password=
5
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
6
+
7
+# Flyway properties
8
+spring.flyway.locations=classpath:db/mysql/migration
src/main/resources/db/mysql/migration/V1_0__USER.sql
@@ -0,0 +1,7 @@
+CREATE TABLE IF NOT EXISTS MYSQL_DEMO.USER (
+ ID INT NOT NULL AUTO_INCREMENT,
+ FIRST_NAME VARCHAR(50) NOT NULL,
+ LAST_NAME VARCHAR(50) NOT NULL,
+ ADD_TS DATETIME(6) NOT NULL,
+ PRIMARY KEY (ID))
+ENGINE = InnoDB;
0 commit comments