Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
21702b61
Commit
21702b61
authored
Jul 10, 2022
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update seed data
parent
d75338b6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
LATEST__SCHEMA.sql
store/db/migration/LATEST__SCHEMA.sql
+4
-4
10002__memo.sql
store/db/seed/10002__memo.sql
+11
-8
10003__memo_organizer.sql
store/db/seed/10003__memo_organizer.sql
+1
-1
No files found.
store/db/migration/LATEST__SCHEMA.sql
View file @
21702b61
...
@@ -51,7 +51,7 @@ CREATE TABLE memo (
...
@@ -51,7 +51,7 @@ CREATE TABLE memo (
INSERT
INTO
INSERT
INTO
sqlite_sequence
(
name
,
seq
)
sqlite_sequence
(
name
,
seq
)
VALUES
VALUES
(
'memo'
,
100
);
(
'memo'
,
100
0
);
CREATE
TRIGGER
IF
NOT
EXISTS
`trigger_update_memo_modification_time`
CREATE
TRIGGER
IF
NOT
EXISTS
`trigger_update_memo_modification_time`
AFTER
AFTER
...
@@ -79,7 +79,7 @@ CREATE TABLE memo_organizer (
...
@@ -79,7 +79,7 @@ CREATE TABLE memo_organizer (
INSERT
INTO
INSERT
INTO
sqlite_sequence
(
name
,
seq
)
sqlite_sequence
(
name
,
seq
)
VALUES
VALUES
(
'memo_organizer'
,
100
);
(
'memo_organizer'
,
100
0
);
-- shortcut
-- shortcut
CREATE
TABLE
shortcut
(
CREATE
TABLE
shortcut
(
...
@@ -96,7 +96,7 @@ CREATE TABLE shortcut (
...
@@ -96,7 +96,7 @@ CREATE TABLE shortcut (
INSERT
INTO
INSERT
INTO
sqlite_sequence
(
name
,
seq
)
sqlite_sequence
(
name
,
seq
)
VALUES
VALUES
(
'shortcut'
,
100
);
(
'shortcut'
,
100
00
);
CREATE
TRIGGER
IF
NOT
EXISTS
`trigger_update_shortcut_modification_time`
CREATE
TRIGGER
IF
NOT
EXISTS
`trigger_update_shortcut_modification_time`
AFTER
AFTER
...
@@ -126,7 +126,7 @@ CREATE TABLE resource (
...
@@ -126,7 +126,7 @@ CREATE TABLE resource (
INSERT
INTO
INSERT
INTO
sqlite_sequence
(
name
,
seq
)
sqlite_sequence
(
name
,
seq
)
VALUES
VALUES
(
'resource'
,
100
);
(
'resource'
,
100
00
);
CREATE
TRIGGER
IF
NOT
EXISTS
`trigger_update_resource_modification_time`
CREATE
TRIGGER
IF
NOT
EXISTS
`trigger_update_resource_modification_time`
AFTER
AFTER
...
...
store/db/seed/10002__memo.sql
View file @
21702b61
...
@@ -6,8 +6,9 @@ INSERT INTO
...
@@ -6,8 +6,9 @@ INSERT INTO
)
)
VALUES
VALUES
(
(
101
,
1001
,
'#Hello 👋 Welcome to memos'
,
"#Hello 👋 Welcome to memos.
And here is old Jack's Page: [/u/102](/u/102)"
,
101
101
);
);
...
@@ -19,7 +20,7 @@ INSERT INTO
...
@@ -19,7 +20,7 @@ INSERT INTO
)
)
VALUES
VALUES
(
(
102
,
10
0
2
,
'#TODO
'#TODO
- [ ] Take more photos about **🌄 sunset**;
- [ ] Take more photos about **🌄 sunset**;
- [x] Clean the room;
- [x] Clean the room;
...
@@ -37,7 +38,7 @@ INSERT INTO
...
@@ -37,7 +38,7 @@ INSERT INTO
)
)
VALUES
VALUES
(
(
103
,
10
0
3
,
'好好学习,天天向上。🤜🤛'
,
'好好学习,天天向上。🤜🤛'
,
101
,
101
,
'PUBLIC'
'PUBLIC'
...
@@ -51,7 +52,7 @@ INSERT INTO
...
@@ -51,7 +52,7 @@ INSERT INTO
)
)
VALUES
VALUES
(
(
104
,
10
0
4
,
'#TODO
'#TODO
- [x] Take more photos about **🌄 sunset**;
- [x] Take more photos about **🌄 sunset**;
- [ ] Clean the classroom;
- [ ] Clean the classroom;
...
@@ -65,11 +66,13 @@ INSERT INTO
...
@@ -65,11 +66,13 @@ INSERT INTO
memo
(
memo
(
`id`
,
`id`
,
`content`
,
`content`
,
`creator_id`
`creator_id`
,
`visibility`
)
)
VALUES
VALUES
(
(
105
,
10
0
5
,
'三人行,必有我师焉!👨🏫'
,
'三人行,必有我师焉!👨🏫'
,
102
102
,
'PUBLIC'
);
);
store/db/seed/10003__memo_organizer.sql
View file @
21702b61
...
@@ -6,7 +6,7 @@ INSERT INTO
...
@@ -6,7 +6,7 @@ INSERT INTO
)
)
VALUES
VALUES
(
(
101
,
10
0
1
,
101
,
101
,
1
1
);
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment