Skip to content

Commit 2a276e7

Browse files
chatchclaude
andcommitted
fix prelive check: prepay_enabled IS NOT TRUE not IS NULL
Migration 0015 narrowed the original 0000 condition from (IS NULL OR = false) to IS NULL only, breaking the prelive transition when prepay_enabled is explicitly set to false. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5ca3c64 commit 2a276e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqitch/deploy/0021_corporate_body_customer_status.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ BEGIN
104104
WHERE ca.customer = new_customer_row.id
105105
AND ca.role = 'occupier'
106106
AND a.type = 'supply'
107-
AND (m.prepay_enabled IS NULL)
107+
AND (m.prepay_enabled IS NOT TRUE)
108108
) INTO has_unprepared_supply_meter;
109109
END IF;
110110

0 commit comments

Comments
 (0)