From 1e93bf7ed9dbc7bf50b7bd2548614d7da0a24fb4 Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 12 Jan 2022 16:20:20 -0500 Subject: [PATCH] Add example units to the database in a migration. --- .../000018-add-example-units-to-database.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/committed/000018-add-example-units-to-database.sql diff --git a/migrations/committed/000018-add-example-units-to-database.sql b/migrations/committed/000018-add-example-units-to-database.sql new file mode 100644 index 0000000..be0847f --- /dev/null +++ b/migrations/committed/000018-add-example-units-to-database.sql @@ -0,0 +1,11 @@ +--! Previous: sha1:3a9ed9f26777390a1dccadc516bade27ffddf684 +--! Hash: sha1:f03c81c8d0ca3976d4b6fe4792ee7558d1c2c2f1 +--! Message: Add example units to database + +INSERT INTO Unit(name, subtitle, description, tierid, basehealth, basestrength) +VALUES ('Lady Bootstrap', 'Time Traveler', '???', 's', 55, 20), + ('Melpomene', 'Muse of Tragedy', '???', 'a', 40, 23), + ('Sharla', 'Skark Girl', '???', 'b', 33, 19), + ('Herja', 'Viking Warrior', '???', 'c', 26, 16), + ('Nicole', 'Predator Podcaster', '???', 'c', 19, 17) +ON CONFLICT ON CONSTRAINT unit_name_subtitle_key DO NOTHING;