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
93b8e221
Commit
93b8e221
authored
Oct 26, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update dev latest schema
parent
052216c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
LATEST__SCHEMA.sql
store/db/mysql/migration/dev/LATEST__SCHEMA.sql
+11
-0
LATEST__SCHEMA.sql
store/db/sqlite/migration/dev/LATEST__SCHEMA.sql
+2
-1
No files found.
store/db/mysql/migration/dev/LATEST__SCHEMA.sql
View file @
93b8e221
...
@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS `tag`;
...
@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS `tag`;
DROP
TABLE
IF
EXISTS
`activity`
;
DROP
TABLE
IF
EXISTS
`activity`
;
DROP
TABLE
IF
EXISTS
`storage`
;
DROP
TABLE
IF
EXISTS
`storage`
;
DROP
TABLE
IF
EXISTS
`idp`
;
DROP
TABLE
IF
EXISTS
`idp`
;
DROP
TABLE
IF
EXISTS
`inbox`
;
-- migration_history
-- migration_history
CREATE
TABLE
`migration_history`
(
CREATE
TABLE
`migration_history`
(
...
@@ -122,3 +123,13 @@ CREATE TABLE `idp` (
...
@@ -122,3 +123,13 @@ CREATE TABLE `idp` (
`identifier_filter`
VARCHAR
(
256
)
NOT
NULL
DEFAULT
''
,
`identifier_filter`
VARCHAR
(
256
)
NOT
NULL
DEFAULT
''
,
`config`
TEXT
NOT
NULL
`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
'{}'
);
store/db/sqlite/migration/dev/LATEST__SCHEMA.sql
View file @
93b8e221
...
@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS tag;
...
@@ -11,6 +11,7 @@ DROP TABLE IF EXISTS tag;
DROP
TABLE
IF
EXISTS
activity
;
DROP
TABLE
IF
EXISTS
activity
;
DROP
TABLE
IF
EXISTS
storage
;
DROP
TABLE
IF
EXISTS
storage
;
DROP
TABLE
IF
EXISTS
idp
;
DROP
TABLE
IF
EXISTS
idp
;
DROP
TABLE
IF
EXISTS
inbox
;
-- migration_history
-- migration_history
CREATE
TABLE
migration_history
(
CREATE
TABLE
migration_history
(
...
@@ -140,6 +141,6 @@ CREATE TABLE inbox (
...
@@ -140,6 +141,6 @@ CREATE TABLE inbox (
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
sender_id
INTEGER
NOT
NULL
,
sender_id
INTEGER
NOT
NULL
,
receiver_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
'{}'
message
TEXT
NOT
NULL
DEFAULT
'{}'
);
);
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