-- 将实名认证策略的列默认值从 none 改为 after_order（先充值/购买后实名）
-- 仅影响新增记录，现有记录保持原有值不变

ALTER TABLE tb_iot_card
    ALTER COLUMN realname_policy SET DEFAULT 'after_order';

ALTER TABLE tb_device
    ALTER COLUMN realname_policy SET DEFAULT 'after_order';

ALTER TABLE tb_iot_card_import_task
    ALTER COLUMN realname_policy SET DEFAULT 'after_order';

ALTER TABLE tb_device_import_task
    ALTER COLUMN realname_policy SET DEFAULT 'after_order';
