-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* base * generate working * gen still working * test failing * added resolver * also needed * some req changes * minor * rename * migration fix * lint * cleanup * cleanup * more cleanup * remove comments
- Loading branch information
Showing
17 changed files
with
947 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE admires ADD COLUMN IF NOT EXISTS token_id varchar(255) references tokens(id); | ||
CREATE UNIQUE index admire_actor_id_token_id_idx ON admires(actor_id, token_id) WHERE deleted = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- name: CreateAdmire :one | ||
insert into admires (id, feed_event_id, post_id, actor_id) values ($1, sqlc.narg('feed_event'), sqlc.narg('post'), $2) returning id; | ||
insert into admires (id, feed_event_id, post_id, token_id, actor_id) values ($1, sqlc.narg('feed_event'), sqlc.narg('post'), sqlc.narg('token'), $2) returning id; | ||
|
||
-- name: DeleteAdmireByID :exec | ||
update admires set deleted = true where id = $1; | ||
update admires set deleted = true where id = $1; |
Oops, something went wrong.