Archive old migrations (#426)

* Archive old migrations

* Fix invalid placement of migrations
This commit is contained in:
Rikard Bartholf
2024-10-17 11:19:12 +02:00
committed by GitHub
parent 763262c108
commit ddcbd0afb0
500 changed files with 0 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
-- 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;