update current product code and RD code

This commit is contained in:
Nitesh Yadav
2026-04-15 20:34:12 +05:30
parent d7821c7824
commit 2facd3744d
48 changed files with 32602 additions and 1551 deletions
@@ -163,4 +163,29 @@
);
</sql>
</changeSet>
<changeSet author="fineract" id="2005-6-savings-product-customer-segment-remove-corporate">
<sql>
DELETE FROM m_code_value
WHERE code_value = 'Corporate'
AND code_id = (SELECT id FROM m_code WHERE code_name = 'SavingsProductCustomerSegment');
</sql>
</changeSet>
<changeSet author="fineract" id="2005-7-savings-product-customer-segment-add-non-individual">
<sql>
INSERT INTO m_code (code_name, is_system_defined)
SELECT 'SavingsProductCustomerSegment', TRUE
WHERE NOT EXISTS (SELECT 1 FROM m_code WHERE code_name = 'SavingsProductCustomerSegment');
INSERT INTO m_code_value (code_id, code_value, order_position, code_description, is_active, is_mandatory)
SELECT c.id, 'Non Individual', 3, 'Non Individual', TRUE, FALSE
FROM m_code c
WHERE c.code_name = 'SavingsProductCustomerSegment'
AND NOT EXISTS (
SELECT 1 FROM m_code_value cv
WHERE cv.code_id = c.id AND cv.code_value = 'Non Individual'
);
</sql>
</changeSet>
</databaseChangeLog>