Skip to content

Commit

Permalink
simplify DistributionDemo script
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiwish committed Nov 7, 2023
1 parent 317daef commit 7eaf37c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundled-schema/DistributionDemo.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ BEGIN;

-- Adds a Distribution that can be accepted up to 20 times that gives one of Item Type 30 (Item Box extra page)
INSERT INTO distribution (type, event_name, description, times_acceptable) VALUES (1, 'Extra Item Storage', '~C05Adds one new page to your Item Box.', 20);
INSERT INTO distribution_items (distribution_id, item_type, item_id, quantity) VALUES ((SELECT id FROM distribution ORDER BY id DESC LIMIT 1), 30, 0, 1);
INSERT INTO distribution_items (distribution_id, item_type, quantity) VALUES ((SELECT id FROM distribution ORDER BY id DESC LIMIT 1), 30, 1);

-- Adds a Distribution that can be accepted up to 20 times that gives one of Item Type 31 (Equipment Box extra page)
INSERT INTO distribution (type, event_name, description, times_acceptable) VALUES (1, 'Extra Equipment Storage', '~C05Adds one new page to your Equipment Box.', 20);
INSERT INTO distribution_items (distribution_id, item_type, item_id, quantity) VALUES ((SELECT id FROM distribution ORDER BY id DESC LIMIT 1), 31, 0, 1);
INSERT INTO distribution_items (distribution_id, item_type, quantity) VALUES ((SELECT id FROM distribution ORDER BY id DESC LIMIT 1), 31, 1);

END;

0 comments on commit 7eaf37c

Please sign in to comment.