fix: require reactions to be unique for owner, asset
add: cut off really long text in posts
This commit is contained in:
parent
a1c6beb664
commit
d7a37809ba
9 changed files with 27 additions and 37 deletions
|
@ -4,5 +4,6 @@ CREATE TABLE IF NOT EXISTS reactions (
|
|||
owner BIGINT NOT NULL,
|
||||
asset BIGINT NOT NULL,
|
||||
asset_type TEXT NOT NULL,
|
||||
is_like INT NOT NULL
|
||||
is_like INT NOT NULL,
|
||||
UNIQUE (owner, asset)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue