keep track of history

This commit is contained in:
gowthaman.b 2024-05-08 14:23:35 +05:30
parent 18afa76d56
commit 75c79ba02b
3 changed files with 18 additions and 1 deletions

View 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);

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
<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>
</migration>

View 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>