merged database_update.sql
This commit is contained in:
parent
0a639b111e
commit
a0f412f074
@ -1,2 +1,15 @@
|
|||||||
|
-- Artikel mit Preis
|
||||||
|
INSERT INTO price ( article_number, price, vat, price_list )
|
||||||
|
VALUES ( 1012, 2.0, 19.0, 1 );
|
||||||
|
-- RAM Option fuer PAC/WEB
|
||||||
INSERT INTO component ( basepacket_id, basecomponent_id, admin_only, article_number, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity )
|
INSERT INTO component ( basepacket_id, basecomponent_id, admin_only, article_number, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity )
|
||||||
SELECT basepacket_id, basecomponent_id, false, 1012, 0, 102400000, 0, 0, 0 from basepacket, basecomponent where basepacket_code='PAC/WEB' and basecomponent_code='RAM';
|
SELECT basepacket_id, basecomponent_id, false, 1012, 0, 102400000, 0, 0, 0 from basepacket, basecomponent where basepacket_code='PAC/WEB' and basecomponent_code='RAM';
|
||||||
|
-- RAM-Option fuer jeden einzelnen Webspace mit 640MB pro DAEMON
|
||||||
|
INSERT INTO packet_component ( basecomponent_id, packet_id, quantity )
|
||||||
|
SELECT 20, packet.packet_id, packet_component.quantity*640 FROM packet, packet_component
|
||||||
|
WHERE packet.packet_id=packet_component.packet_id AND packet.basepacket_id=21 AND packet_component.basecomponent_id=21;
|
||||||
|
|
||||||
|
-- Lösche Instanzen und DAEMON-Option
|
||||||
|
DELETE FROM packet_component WHERE basecomponent_id=21;
|
||||||
|
DELETE FROM component WHERE basecomponent_id=21;
|
||||||
|
DELETE FROM basecomponent WHERE basecomponent_id=21;
|
||||||
|
Loading…
Reference in New Issue
Block a user