Fix: Correct table name in migration (cloudflare_accounts)

This commit is contained in:
oguz ozturk 2026-01-12 16:48:13 +03:00
parent 8f64b61d1d
commit e149c56f76
1 changed files with 5 additions and 5 deletions

View File

@ -1,15 +1,15 @@
-- Migration: Add use_for_verification field to cloudflare_account table -- Migration: Add use_for_verification field to cloudflare_accounts table
-- Date: 2026-01-12 -- Date: 2026-01-12
-- Add use_for_verification column -- Add use_for_verification column
ALTER TABLE cloudflare_account ALTER TABLE cloudflare_accounts
ADD COLUMN IF NOT EXISTS use_for_verification BOOLEAN DEFAULT TRUE; ADD COLUMN IF NOT EXISTS use_for_verification BOOLEAN DEFAULT TRUE;
-- Update existing records to TRUE (default behavior) -- Update existing records to TRUE (default behavior)
UPDATE cloudflare_account UPDATE cloudflare_accounts
SET use_for_verification = TRUE SET use_for_verification = TRUE
WHERE use_for_verification IS NULL; WHERE use_for_verification IS NULL;
-- Add comment -- Add comment
COMMENT ON COLUMN cloudflare_account.use_for_verification IS 'Whether this account can be used for customer domain verification'; COMMENT ON COLUMN cloudflare_accounts.use_for_verification IS 'Whether this account can be used for customer domain verification';