fix some endpoints
This commit is contained in:
parent
7aee99ac42
commit
6f1b94c040
10 changed files with 47 additions and 41 deletions
|
@ -4,9 +4,14 @@
|
|||
|
||||
create table account_follows (
|
||||
account_id text not null references accounts (id) on delete cascade,
|
||||
blog_id text not null references blogs (id) on delete cascade
|
||||
blog_id text not null references blogs (id) on delete cascade,
|
||||
|
||||
primary key (account_id, blog_id)
|
||||
);
|
||||
|
||||
create index account_follows_account_id_idx on account_follows (account_id);
|
||||
|
||||
-- +migrate Down
|
||||
|
||||
drop index account_follows_account_id_idx;
|
||||
drop table account_follows;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue