pull/1/head
samnyan 2020-01-17 01:20:56 +09:00
parent 3d99839fef
commit 136dd1989b
4 changed files with 12 additions and 7 deletions

View File

@ -10,7 +10,7 @@
</parent> </parent>
<groupId>icu.samnya</groupId> <groupId>icu.samnya</groupId>
<artifactId>aqua</artifactId> <artifactId>aqua</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.3-SNAPSHOT</version>
<name>Aqua Server</name> <name>Aqua Server</name>
<description>A multipurpose game server</description> <description>A multipurpose game server</description>

View File

@ -15,7 +15,7 @@ spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=20MB spring.servlet.multipart.max-request-size=20MB
## Database Setting ## Database Setting
spring.flyway.baseline-on-migrate=true 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 ########## ########## For Sqlite ##########
spring.datasource.driver-class-name=org.sqlite.JDBC spring.datasource.driver-class-name=org.sqlite.JDBC
spring.datasource.url=jdbc:sqlite:data/db.sqlite 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.username=
#spring.datasource.password= #spring.datasource.password=
#spring.datasource.url=jdbc:mariadb://localhost:3306/?useSSL=false #spring.datasource.url=jdbc:mariadb://localhost:3306/?useSSL=false
#spring.jpa.hibernate.ddl-auto=update
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB10Dialect #spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB10Dialect
## You can add any Spring Boot properties below ## You can add any Spring Boot properties below

View File

@ -7,4 +7,9 @@ CREATE TABLE property
PRIMARY KEY ( PRIMARY KEY (
id id
) )
); );
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');

View File

@ -6,6 +6,7 @@ allnet.server.host=localhost
allnet.server.port=80 allnet.server.port=80
## Http Server Port ## Http Server Port
server.port=80 server.port=80
spring.datasource.driver-class-name=org.h2.Driver spring.datasource.driver-class-name=org.sqlite.JDBC
spring.datasource.url=jdbc:h2:mem:db spring.datasource.url=jdbc:sqlite:data/test.sqlite
spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.hibernate.ddl-auto=none
spring.flyway.locations=classpath:db/migration/sqlite