diff options
Diffstat (limited to 'src/backenddb/merchant-0009.sql')
-rw-r--r-- | src/backenddb/merchant-0009.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backenddb/merchant-0009.sql b/src/backenddb/merchant-0009.sql index babecf93..988a01c6 100644 --- a/src/backenddb/merchant-0009.sql +++ b/src/backenddb/merchant-0009.sql @@ -29,5 +29,15 @@ SET search_path TO merchant; ALTER TABLE merchant_template DROP COLUMN required_currency; +-- Add the column with IF NOT EXISTS since this +-- migration accidentally was in merchant-0006.sql +-- for some time before it was moved here. +ALTER TABLE merchant_contract_terms + ADD COLUMN IF NOT EXISTS choice_index INT2 DEFAULT NULL; + +COMMENT ON COLUMN merchant_contract_terms.choice_index + IS 'Index of selected choice. Refers to the `choices` array in the contract terms. NULL for contracts without choices.'; + + -- Complete transaction COMMIT; |