mirror of
https://github.com/Phundrak/georm.git
synced 2025-11-30 19:03:59 +00:00
test: added tests for M2M relationships, it works
This commit is contained in:
14
tests/fixtures/m2m.sql
vendored
Normal file
14
tests/fixtures/m2m.sql
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
INSERT INTO genres (name)
|
||||
VALUES ('fantasy'),
|
||||
('horror'),
|
||||
('classic');
|
||||
|
||||
INSERT INTO book_genres (book_id, genre_id)
|
||||
VALUES (1, 1),
|
||||
(1, 3),
|
||||
(2, 1),
|
||||
(2, 3),
|
||||
(3, 1),
|
||||
(3, 3),
|
||||
(4, 2),
|
||||
(4, 3);
|
||||
Reference in New Issue
Block a user