Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update dev latest schema
Steven93b8e2211cd1
diff --git a/store/db/mysql/migration/dev/LATEST__SCHEMA.sql b/store/db/mysql/migration/dev/LATEST__SCHEMA.sqlindex 74e5daed0..605fe945d 100644--- a/store/db/mysql/migration/dev/LATEST__SCHEMA.sql+++ b/store/db/mysql/migration/dev/LATEST__SCHEMA.sql@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS `tag`;DROP TABLE IF EXISTS `activity`;DROP TABLE IF EXISTS `storage`;DROP TABLE IF EXISTS `idp`;+DROP TABLE IF EXISTS `inbox`;-- migration_historyCREATE TABLE `migration_history` (@@ -122,3 +123,13 @@ CREATE TABLE `idp` (`identifier_filter` VARCHAR(256) NOT NULL DEFAULT '',`config` TEXT NOT NULL);++-- inbox+CREATE TABLE `inbox` (+ `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,+ `created_ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,+ `sender_id` INT NOT NULL,+ `receiver_id` INT NOT NULL,+ `status` TEXT NOT NULL,+ `message` TEXT NOT NULL DEFAULT '{}'+);diff --git a/store/db/sqlite/migration/dev/LATEST__SCHEMA.sql b/store/db/sqlite/migration/dev/LATEST__SCHEMA.sqlindex 81e2e503f..c3f365dde 100644--- a/store/db/sqlite/migration/dev/LATEST__SCHEMA.sql+++ b/store/db/sqlite/migration/dev/LATEST__SCHEMA.sql@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS tag;DROP TABLE IF EXISTS activity;DROP TABLE IF EXISTS storage;DROP TABLE IF EXISTS idp;+DROP TABLE IF EXISTS inbox;-- migration_historyCREATE TABLE migration_history (@@ -140,6 +141,6 @@ CREATE TABLE inbox (created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),sender_id INTEGER NOT NULL,receiver_id INTEGER NOT NULL,- status TEXT NOT NULL CHECK (row_status IN ('UNREAD', 'READ', 'ARCHIVED')) DEFAULT 'UNREAD',+ status TEXT NOT NULL CHECK (status IN ('UNREAD', 'READ', 'ARCHIVED')) DEFAULT 'UNREAD',message TEXT NOT NULL DEFAULT '{}');