chore: add memo_relation (#1585)

This commit is contained in:
boojack 2023-04-25 22:26:45 +08:00 committed by GitHub
parent 00f69d683a
commit cd6ab61c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,4 +123,12 @@ CREATE TABLE idp (
type TEXT NOT NULL,
identifier_filter TEXT NOT NULL DEFAULT '',
config TEXT NOT NULL DEFAULT '{}'
);
-- memo_relation
CREATE TABLE memo_relation (
memo_id INTEGER NOT NULL,
related_memo_id INTEGER NOT NULL,
type TEXT NOT NULL,
UNIQUE(memo_id, related_memo_id, type)
);