Refactor data insertion via Drizzle

This commit is contained in:
Sean Morley
2024-04-26 22:43:13 +00:00
parent 37f050d254
commit 319a99fed2
25 changed files with 1511 additions and 661 deletions

View File

@@ -1,12 +1,12 @@
INSERT INTO "worldTravelCountryRegions" (id, name, country_code)
VALUES
('AU-NSW', 'New South Wales', 'au'),
('AU-VIC', 'Victoria', 'au'),
('AU-QLD', 'Queensland', 'au'),
('AU-SA', 'South Australia', 'au'),
('AU-WA', 'Western Australia', 'au'),
('AU-TAS', 'Tasmania', 'au'),
('AU-NT', 'Northern Territory', 'au'),
('AU-ACT', 'Australian Capital Territory', 'au')
-- INSERT INTO "worldTravelCountryRegions" (id, name, country_code)
-- VALUES
-- ('AU-NSW', 'New South Wales', 'au'),
-- ('AU-VIC', 'Victoria', 'au'),
-- ('AU-QLD', 'Queensland', 'au'),
-- ('AU-SA', 'South Australia', 'au'),
-- ('AU-WA', 'Western Australia', 'au'),
-- ('AU-TAS', 'Tasmania', 'au'),
-- ('AU-NT', 'Northern Territory', 'au'),
-- ('AU-ACT', 'Australian Capital Territory', 'au')
ON CONFLICT (id) DO NOTHING;
-- ON CONFLICT (id) DO NOTHING;