10 lines
439 B
SQL
10 lines
439 B
SQL
-- Alter the activation_codes table to accept a 9 digit string for card_id instead of a UUID
|
|
ALTER TABLE activation_codes ALTER COLUMN card_id TYPE VARCHAR(9);
|
|
|
|
-- Alter the activation_logs table to accept a 9 digit string for card_id instead of a UUID
|
|
ALTER TABLE activation_logs ALTER COLUMN card_id TYPE VARCHAR(9);
|
|
|
|
-- Drop the old procedure which accepted UUID
|
|
DROP FUNCTION IF EXISTS activate_payment_card(UUID, TEXT, INET, JSONB);
|
|
|