38471-vm/db/migrations/20260216_add_credit_limit.sql
2026-05-03 01:46:41 +00:00

4 lines
271 B
SQL

-- Ensure legacy customer installs have the monetary columns before later migrations modify them.
ALTER TABLE customers ADD COLUMN IF NOT EXISTS balance DECIMAL(15,3) DEFAULT 0.000;
ALTER TABLE customers ADD COLUMN IF NOT EXISTS credit_limit DECIMAL(15,3) DEFAULT 0.000;