From 21702b615a689f0d1c08af8420ff5c0a26dfe06f Mon Sep 17 00:00:00 2001 From: boojack Date: Sun, 10 Jul 2022 08:15:34 +0800 Subject: [PATCH] chore: update seed data --- store/db/migration/LATEST__SCHEMA.sql | 8 ++++---- store/db/seed/10002__memo.sql | 19 +++++++++++-------- store/db/seed/10003__memo_organizer.sql | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/store/db/migration/LATEST__SCHEMA.sql b/store/db/migration/LATEST__SCHEMA.sql index 4f5c33b6..6591bdec 100644 --- a/store/db/migration/LATEST__SCHEMA.sql +++ b/store/db/migration/LATEST__SCHEMA.sql @@ -51,7 +51,7 @@ CREATE TABLE memo ( INSERT INTO sqlite_sequence (name, seq) VALUES - ('memo', 100); + ('memo', 1000); CREATE TRIGGER IF NOT EXISTS `trigger_update_memo_modification_time` AFTER @@ -79,7 +79,7 @@ CREATE TABLE memo_organizer ( INSERT INTO sqlite_sequence (name, seq) VALUES - ('memo_organizer', 100); + ('memo_organizer', 1000); -- shortcut CREATE TABLE shortcut ( @@ -96,7 +96,7 @@ CREATE TABLE shortcut ( INSERT INTO sqlite_sequence (name, seq) VALUES - ('shortcut', 100); + ('shortcut', 10000); CREATE TRIGGER IF NOT EXISTS `trigger_update_shortcut_modification_time` AFTER @@ -126,7 +126,7 @@ CREATE TABLE resource ( INSERT INTO sqlite_sequence (name, seq) VALUES - ('resource', 100); + ('resource', 10000); CREATE TRIGGER IF NOT EXISTS `trigger_update_resource_modification_time` AFTER diff --git a/store/db/seed/10002__memo.sql b/store/db/seed/10002__memo.sql index b0897323..f1e0206b 100644 --- a/store/db/seed/10002__memo.sql +++ b/store/db/seed/10002__memo.sql @@ -6,8 +6,9 @@ INSERT INTO ) VALUES ( - 101, - '#Hello πŸ‘‹ Welcome to memos', + 1001, + "#Hello πŸ‘‹ Welcome to memos. +And here is old Jack's Page: [/u/102](/u/102)", 101 ); @@ -19,7 +20,7 @@ INSERT INTO ) VALUES ( - 102, + 1002, '#TODO - [ ] Take more photos about **πŸŒ„ sunset**; - [x] Clean the room; @@ -37,7 +38,7 @@ INSERT INTO ) VALUES ( - 103, + 1003, 'ε₯½ε₯½ε­¦δΉ οΌŒε€©ε€©ε‘δΈŠγ€‚πŸ€œπŸ€›', 101, 'PUBLIC' @@ -51,7 +52,7 @@ INSERT INTO ) VALUES ( - 104, + 1004, '#TODO - [x] Take more photos about **πŸŒ„ sunset**; - [ ] Clean the classroom; @@ -65,11 +66,13 @@ INSERT INTO memo ( `id`, `content`, - `creator_id` + `creator_id`, + `visibility` ) VALUES ( - 105, + 1005, 'δΈ‰δΊΊθ‘ŒοΌŒεΏ…ζœ‰ζˆ‘εΈˆη„‰οΌπŸ‘¨β€πŸ«', - 102 + 102, + 'PUBLIC' ); diff --git a/store/db/seed/10003__memo_organizer.sql b/store/db/seed/10003__memo_organizer.sql index 5c3ade8e..be2ddec6 100644 --- a/store/db/seed/10003__memo_organizer.sql +++ b/store/db/seed/10003__memo_organizer.sql @@ -6,7 +6,7 @@ INSERT INTO ) VALUES ( - 101, + 1001, 101, 1 );