updatse
This commit is contained in:
parent
8a19a733d6
commit
52ef924f12
28 changed files with 577 additions and 170 deletions
2
migrations/2023-12-31-104741_artists_tracks/down.sql
Normal file
2
migrations/2023-12-31-104741_artists_tracks/down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
drop table artists_tracks;
|
8
migrations/2023-12-31-104741_artists_tracks/up.sql
Normal file
8
migrations/2023-12-31-104741_artists_tracks/up.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
-- Your SQL goes here
|
||||
create table if not exists artists_tracks
|
||||
(
|
||||
artist_id varchar(24) references artists (id) on delete cascade,
|
||||
track_id varchar(24) references tracks (id) on delete cascade,
|
||||
|
||||
primary key (artist_id, track_id)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue