diff --git a/pom.xml b/pom.xml index 2ad0d3fb..6afa8369 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ icu.samnya aqua - 0.0.1-SNAPSHOT + 0.0.3-SNAPSHOT Aqua Server A multipurpose game server diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 57f748b3..685f6179 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -15,7 +15,7 @@ spring.servlet.multipart.max-file-size=10MB spring.servlet.multipart.max-request-size=20MB ## Database Setting spring.flyway.baseline-on-migrate=true -spring.flyway.locations=classpath:db/migration/{vendor},classpath:db/migration/common +spring.flyway.locations=classpath:db/migration/{vendor} ########## For Sqlite ########## spring.datasource.driver-class-name=org.sqlite.JDBC spring.datasource.url=jdbc:sqlite:data/db.sqlite @@ -27,6 +27,5 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLiteDialect #spring.datasource.username= #spring.datasource.password= #spring.datasource.url=jdbc:mariadb://localhost:3306/?useSSL=false -#spring.jpa.hibernate.ddl-auto=update #spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB10Dialect ## You can add any Spring Boot properties below \ No newline at end of file diff --git a/src/main/resources/db/migration/sqlite/V2__property_table.sql b/src/main/resources/db/migration/sqlite/V2__property_table.sql index 4d58f436..a35a8381 100644 --- a/src/main/resources/db/migration/sqlite/V2__property_table.sql +++ b/src/main/resources/db/migration/sqlite/V2__property_table.sql @@ -7,4 +7,9 @@ CREATE TABLE property PRIMARY KEY ( id ) -); \ No newline at end of file +); + +INSERT INTO `property` (id, property_key, property_value) +VALUES (1, 'diva_news', 'Server Running No other news'); +INSERT INTO `property` (id, property_key, property_value) +VALUES (2, 'diva_warning', 'Network Service Running'); \ No newline at end of file diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties index fe78bb75..f30f395b 100644 --- a/src/test/resources/application-test.properties +++ b/src/test/resources/application-test.properties @@ -6,6 +6,7 @@ allnet.server.host=localhost allnet.server.port=80 ## Http Server Port server.port=80 -spring.datasource.driver-class-name=org.h2.Driver -spring.datasource.url=jdbc:h2:mem:db -spring.jpa.hibernate.ddl-auto=create-drop +spring.datasource.driver-class-name=org.sqlite.JDBC +spring.datasource.url=jdbc:sqlite:data/test.sqlite +spring.jpa.hibernate.ddl-auto=none +spring.flyway.locations=classpath:db/migration/sqlite \ No newline at end of file