user instruments
This commit is contained in:
parent
dd03cae0f3
commit
abb2411af7
9 changed files with 494 additions and 48 deletions
|
|
@ -0,0 +1,2 @@
|
|||
drop table if exists user_instrument;
|
||||
alter table instrument drop column if exists is_global;
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
alter table instrument add column is_global bool not null default false;
|
||||
update instrument set is_global = true;
|
||||
|
||||
create table user_instrument (
|
||||
user_id uuid references users(id) not null,
|
||||
instrument_id uuid references instrument(id) not null,
|
||||
primary key (user_id, instrument_id)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue