Skip to content

Commit

Permalink
Merge pull request #902 from andrew-bierman/feat/basic-crud-tests-for…
Browse files Browse the repository at this point in the history
…-trpc-routes

CRUD Tests for Trip Routes - [1]
  • Loading branch information
andrew-bierman authored May 8, 2024
2 parents 3078211 + a1b5c65 commit e1f25e5
Show file tree
Hide file tree
Showing 4 changed files with 1,690 additions and 1,694 deletions.
2 changes: 1 addition & 1 deletion .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions server/migrations/0001_same_iron_patriot.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
-- This is a dummy migration
-- It does nothing
SELECT 1;--> statement-breakpoint
/*
SQLite does not support "Creating foreign key on existing column" out of the box, we do not generate automatic migration for that, so it has to be done manually
Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php
https://www.sqlite.org/lang_altertable.html
Due to that we don't generate migration automatically and it has to be done manually
*/
SELECT 1;
9 changes: 1 addition & 8 deletions server/migrations/0002_numerous_tyger_tiger.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
ALTER TABLE item ADD `owner_id` text REFERENCES user(id);--> statement-breakpoint
/*
SQLite does not support "Creating foreign key on existing column" out of the box, we do not generate automatic migration for that, so it has to be done manually
Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php
https://www.sqlite.org/lang_altertable.html
Due to that we don't generate migration automatically and it has to be done manually
*/
ALTER TABLE item ADD `owner_id` text REFERENCES user(id);
Loading

0 comments on commit e1f25e5

Please sign in to comment.