spring-liquibase-template/db-patcher/build/resources/main/db/changelog/scripts/20220328-02-update_table_fd...

23 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
<changeSet id="20220328-02-update_table_fd_bulk_payout_order.xml" author="vboyko">
<sql>
alter table fd_bulk_payout_order
drop constraint fd_bulk_payout_order_status_ck;
alter table fd_bulk_payout_order
add constraint fd_bulk_payout_order_status_ck check(parse_status in ('INIT', 'REJECTED', 'CONFIRMED'));
</sql>
<rollback>
<sql>
alter table fd_bulk_payout_order
drop constraint fd_bulk_payout_order_status_ck;
alter table fd_bulk_payout_order
add constraint fd_bulk_payout_order_status_ck check(parse_status in ('REJECTED', 'CONFIRMED'));
</sql>
</rollback>
</changeSet>
</databaseChangeLog>