fixes
This commit is contained in:
8
src/main/resources/dbmigration/1.4.sql
Normal file
8
src/main/resources/dbmigration/1.4.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- apply alter tables
|
||||
alter table purchase_order alter column tnc drop not null;
|
||||
alter table purchase_order alter column documents type varchar[] using documents::varchar[];
|
||||
alter table purchase_order alter column documents drop not null;
|
||||
alter table quotation alter column tnc drop not null;
|
||||
alter table quotation alter column documents type varchar[] using documents::varchar[];
|
||||
alter table quotation alter column documents drop not null;
|
||||
alter table quotation add column if not exists vendor_quote_num varchar(255);
|
||||
12
src/main/resources/dbmigration/model/1.4.model.xml
Normal file
12
src/main/resources/dbmigration/model/1.4.model.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
|
||||
<changeSet type="apply">
|
||||
<alterColumn columnName="tnc" tableName="purchase_order" currentType="varchar[]" notnull="false" currentNotnull="true"/>
|
||||
<alterColumn columnName="documents" tableName="purchase_order" type="varchar[]" currentType="bigint[]" notnull="false" currentNotnull="true"/>
|
||||
<alterColumn columnName="tnc" tableName="quotation" currentType="varchar[]" notnull="false" currentNotnull="true"/>
|
||||
<alterColumn columnName="documents" tableName="quotation" type="varchar[]" currentType="bigint[]" notnull="false" currentNotnull="true"/>
|
||||
<addColumn tableName="quotation">
|
||||
<column name="vendor_quote_num" type="varchar"/>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
</migration>
|
||||
Reference in New Issue
Block a user