Skip to content

Commit ea5bdab

Browse files
committed
added two more purchase transactions for testing- route requires fiddling
1 parent f297345 commit ea5bdab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/sql/dummy_data2.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ INSERT INTO Transaction (person_id, date, trans_type, site)
3838
VALUES ((SELECT MAX(person_id) FROM Person), NOW(), 'donation', 1),
3939
-- Add old transaction with goods that have been expiring.
4040
((SELECT MIN(person_id) FROM Person), NOW() - INTERVAL '3 weeks', 'donation', 1),
41+
-- Add three purchase transactions of same person_id:
42+
((SELECT MAX(person_id) FROM Person), NOW(), 'purchase', 1),
43+
((SELECT MAX(person_id) FROM Person), NOW(), 'purchase', 1),
4144
((SELECT MAX(person_id) FROM Person), NOW(), 'purchase', 1);
4245

4346
-- Insert test data for Trans_items

0 commit comments

Comments
 (0)