rd account and rd product code update
This commit is contained in:
@@ -288,5 +288,6 @@
|
||||
<include file="parts/0278_add_is_mandatory_to_joint_holder.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0279_add_fd_type_and_base_interest_rate_tables.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0280_add_fixed_deposit_product_codes.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0284_remove_product_code_unique_constraints.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0281_update_fd_base_interest_rate_seed_data.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<?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-4.1.xsd">
|
||||
|
||||
<changeSet id="0284_remove_product_code_unique_constraints" author="system">
|
||||
<!-- For Savings/RD/FD products -->
|
||||
<dropUniqueConstraint tableName="m_savings_product" constraintName="m_savings_product_product_code_key"/>
|
||||
|
||||
<!-- For Current products -->
|
||||
<dropUniqueConstraint tableName="m_current_product" constraintName="cp_unq_product_code"/>
|
||||
|
||||
<!-- Set existing empty or blank product_codes to NULL to avoid future issues -->
|
||||
<update tableName="m_savings_product">
|
||||
<column name="product_code" valueComputed="NULL"/>
|
||||
<where>product_code = '' OR product_code IS NULL</where>
|
||||
</update>
|
||||
|
||||
<update tableName="m_current_product">
|
||||
<column name="product_code" valueComputed="NULL"/>
|
||||
<where>product_code = '' OR product_code IS NULL</where>
|
||||
</update>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
Reference in New Issue
Block a user