mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-24 19:10:35 +00:00
10 lines
346 B
MySQL
10 lines
346 B
MySQL
|
-- Your SQL goes here
|
||
|
ALTER TABLE comments ADD public_visibility BOOLEAN NOT NULL DEFAULT 't';
|
||
|
|
||
|
CREATE TABLE comment_seers (
|
||
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||
|
comment_id INTEGER REFERENCES comments(id) ON DELETE CASCADE NOT NULL,
|
||
|
user_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL,
|
||
|
UNIQUE (comment_id, user_id)
|
||
|
)
|