keep track of history
This commit is contained in:
parent
18afa76d56
commit
75c79ba02b
3
src/main/resources/dbmigration/1.31.sql
Normal file
3
src/main/resources/dbmigration/1.31.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-- apply alter tables
|
||||||
|
alter table auth_token_cache add column if not exists refresh_history jsonb;
|
||||||
|
alter table product add column if not exists id varchar(255);
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
|
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
|
||||||
<changeSet type="apply">
|
<changeSet type="apply">
|
||||||
<alterColumn columnName="id" tableName="product" type="varchar" currentType="bigint" currentNotnull="false"/>
|
<alterColumn columnName="code" tableName="product" type="varchar" currentType="bigint" currentNotnull="false"/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
</migration>
|
</migration>
|
||||||
14
src/main/resources/dbmigration/model/1.31.model.xml
Normal file
14
src/main/resources/dbmigration/model/1.31.model.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
|
||||||
|
<changeSet type="apply">
|
||||||
|
<addColumn tableName="auth_token_cache">
|
||||||
|
<column name="refresh_history" type="jsonb"/>
|
||||||
|
</addColumn>
|
||||||
|
<addColumn tableName="product">
|
||||||
|
<column name="id" type="varchar"/>
|
||||||
|
</addColumn>
|
||||||
|
</changeSet>
|
||||||
|
<changeSet type="pendingDrops">
|
||||||
|
<dropColumn columnName="code" tableName="product"/>
|
||||||
|
</changeSet>
|
||||||
|
</migration>
|
||||||
Loading…
x
Reference in New Issue
Block a user