From cd6ab61c2dabd6d24409e8af1d44b6a5386f46f3 Mon Sep 17 00:00:00 2001 From: boojack Date: Tue, 25 Apr 2023 22:26:45 +0800 Subject: [PATCH] chore: add memo_relation (#1585) --- store/db/migration/dev/LATEST__SCHEMA.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/store/db/migration/dev/LATEST__SCHEMA.sql b/store/db/migration/dev/LATEST__SCHEMA.sql index a5b3cfac..447052f7 100644 --- a/store/db/migration/dev/LATEST__SCHEMA.sql +++ b/store/db/migration/dev/LATEST__SCHEMA.sql @@ -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) ); \ No newline at end of file