mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
refactor: update memo tags
This commit is contained in:
@ -43,7 +43,8 @@ CREATE TABLE memo (
|
||||
updated_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()),
|
||||
row_status TEXT NOT NULL DEFAULT 'NORMAL',
|
||||
content TEXT NOT NULL,
|
||||
visibility TEXT NOT NULL DEFAULT 'PRIVATE'
|
||||
visibility TEXT NOT NULL DEFAULT 'PRIVATE',
|
||||
tags JSONB NOT NULL DEFAULT '[]'
|
||||
);
|
||||
|
||||
-- memo_organizer
|
||||
|
1
store/db/postgres/migration/prod/0.22/01__memo_tags.sql
Normal file
1
store/db/postgres/migration/prod/0.22/01__memo_tags.sql
Normal file
@ -0,0 +1 @@
|
||||
ALTER TABLE memo ADD COLUMN tags JSONB NOT NULL DEFAULT '[]';
|
Reference in New Issue
Block a user