mirror of
https://github.com/usememos/memos.git
synced 2025-01-05 04:58:02 +03:00
chore: add memo_relation (#1585)
This commit is contained in:
parent
00f69d683a
commit
cd6ab61c2d
@ -123,4 +123,12 @@ CREATE TABLE idp (
|
|||||||
type TEXT NOT NULL,
|
type TEXT NOT NULL,
|
||||||
identifier_filter TEXT NOT NULL DEFAULT '',
|
identifier_filter TEXT NOT NULL DEFAULT '',
|
||||||
config 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)
|
||||||
);
|
);
|
Loading…
Reference in New Issue
Block a user