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
+30
View File
@@ -0,0 +1,30 @@
-- P5-7080: add framed prints discount codes
insert into discount_codes (name, value, type, start, "end", code) values
-- belgium
('Framed prints -10%', 10, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy2-be'),
('Framed prints -15%', 15, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy3-be'),
('Framed prints -20%', 20, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy4-be'),
-- canada
('Framed prints -10%', 10, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy2-ca'),
('Framed prints -15%', 15, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy3-ca'),
('Framed prints -20%', 20, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy4-ca'),
-- italy
('Stampe Incorniciate -10%', 10, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy2-it'),
('Stampe Incorniciate -15%', 15, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy3-it'),
('Stampe Incorniciate -20%', 20, '%', '2020-01-01 08:00:00', '2030-12-30 23:00:00', 'framedprintsbuy4-it');
insert into discount_code_filters (filter_name, filter_value, discount_code_id) values
--belgium
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy2-be')),
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy3-be')),
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy4-be')),
--canada
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy2-ca')),
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy3-ca')),
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy4-ca')),
--italy
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy2-it')),
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy3-it')),
('group', 'framed-print', (select discountid from discount_codes where code = 'framedprintsbuy4-it'));