some updates
This commit is contained in:
2
src/main/resources/dbmigration/1.5.sql
Normal file
2
src/main/resources/dbmigration/1.5.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- apply alter tables
|
||||
alter table document add column if not exists ref_id_of_doc bigint;
|
||||
11
src/main/resources/dbmigration/model/1.5.model.xml
Normal file
11
src/main/resources/dbmigration/model/1.5.model.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
|
||||
<changeSet type="apply">
|
||||
<addColumn tableName="document">
|
||||
<column name="ref_id_of_doc" type="bigint"/>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
<changeSet type="pendingDrops">
|
||||
<dropColumn columnName="ref_id" tableName="document"/>
|
||||
</changeSet>
|
||||
</migration>
|
||||
@@ -1,4 +1,19 @@
|
||||
<configuration>
|
||||
<appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>api.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<FileNamePattern>api.%d{yyyy-MM-dd}.%i.log.gz</FileNamePattern>
|
||||
<MaxHistory>30</MaxHistory>
|
||||
<timeBasedFileNamingAndTriggeringPolicy
|
||||
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>100MB</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
@@ -14,5 +29,6 @@
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="ROLLING" />
|
||||
</root>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user