Files
database/migrations/archive/000.154.sql
T
Rikard BartholfandGitHub ddcbd0afb0 Archive old migrations (#426)
* Archive old migrations

* Fix invalid placement of migrations
2024-10-17 11:19:12 +02:00

14 lines
567 B
SQL

-- P5-4783 add designer pricepremium for each product group
ALTER TABLE designers
RENAME COLUMN pricepremium TO pricepremium_wallpaper;
ALTER TABLE designers
ADD COLUMN pricepremium_canvas NUMERIC NOT NULL DEFAULT 0,
ADD COLUMN pricepremium_poster NUMERIC NOT NULL DEFAULT 0,
ADD COLUMN pricepremium_framed_print NUMERIC NOT NULL DEFAULT 0;
UPDATE designers SET pricepremium_canvas = pricepremium_wallpaper;
UPDATE designers SET pricepremium_poster = pricepremium_wallpaper;
UPDATE designers SET pricepremium_framed_print = pricepremium_wallpaper;