2026-06-02 20:38:50 -04:00
|
|
|
-- 2026-06: add 'pending_migration' to asset_status enum for manual SMB-to-S3 promotion
|
2026-06-02 20:41:04 -04:00
|
|
|
DO $$
|
|
|
|
|
BEGIN
|
|
|
|
|
IF NOT EXISTS (SELECT 1 FROM pg_enum WHERE enumlabel = 'pending_migration' AND enumtypid = 'asset_status'::regtype) THEN
|
|
|
|
|
ALTER TYPE asset_status ADD VALUE 'pending_migration';
|
|
|
|
|
END IF;
|
|
|
|
|
END
|
|
|
|
|
$$;
|