veza/veza-backend-api/migrations/102_license_revoked.sql

8 lines
284 B
MySQL
Raw Permalink Normal View History

-- v0.403 R2: Add revoked_at to licenses for refund revocation
DO $$
BEGIN
IF EXISTS (SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'licenses') THEN
ALTER TABLE licenses ADD COLUMN IF NOT EXISTS revoked_at TIMESTAMPTZ;
END IF;
END $$;