kundencenter/migrations/006_price_basis.sql

5 lines
409 B
MySQL
Raw Permalink Normal View History

-- Preisbasis: Beträge sind je nach price_basis Netto- oder Bruttobeträge (Verbraucherpreise sind Bruttopreise und müssen exakt bleiben)
ALTER TABLE product_versions RENAME COLUMN setup_net_cents TO setup_cents;
ALTER TABLE product_versions RENAME COLUMN recurring_net_cents TO recurring_cents;
ALTER TABLE product_versions ADD COLUMN price_basis ENUM('net','gross') NOT NULL DEFAULT 'net' AFTER currency;