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
71ee299d
Commit
71ee299d
authored
Sep 26, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: drop shortcut
parent
9d1c9fc5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
version.go
server/version/version.go
+1
-1
LATEST__SCHEMA.sql
store/db/migration/dev/LATEST__SCHEMA.sql
+0
-11
00__add_memo_id_to_resource.sql
store/db/migration/prod/0.16/00__add_memo_id_to_resource.sql
+2
-2
01__drop_shortcut_table.sql
store/db/migration/prod/0.16/01__drop_shortcut_table.sql
+1
-0
No files found.
server/version/version.go
View file @
71ee299d
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
var
Version
=
"0.15.2"
var
Version
=
"0.15.2"
// DevVersion is the service current development version.
// DevVersion is the service current development version.
var
DevVersion
=
"0.1
5.2
"
var
DevVersion
=
"0.1
6.0
"
func
GetCurrentVersion
(
mode
string
)
string
{
func
GetCurrentVersion
(
mode
string
)
string
{
if
mode
==
"dev"
||
mode
==
"demo"
{
if
mode
==
"dev"
||
mode
==
"demo"
{
...
...
store/db/migration/dev/LATEST__SCHEMA.sql
View file @
71ee299d
...
@@ -59,17 +59,6 @@ CREATE TABLE memo_organizer (
...
@@ -59,17 +59,6 @@ CREATE TABLE memo_organizer (
UNIQUE
(
memo_id
,
user_id
)
UNIQUE
(
memo_id
,
user_id
)
);
);
-- shortcut
CREATE
TABLE
shortcut
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
creator_id
INTEGER
NOT
NULL
,
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
row_status
TEXT
NOT
NULL
CHECK
(
row_status
IN
(
'NORMAL'
,
'ARCHIVED'
))
DEFAULT
'NORMAL'
,
title
TEXT
NOT
NULL
DEFAULT
''
,
payload
TEXT
NOT
NULL
DEFAULT
'{}'
);
-- resource
-- resource
CREATE
TABLE
resource
(
CREATE
TABLE
resource
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
...
...
store/db/migration/prod/0.16/00__add_memo_id_to_resource.sql
View file @
71ee299d
...
@@ -8,6 +8,6 @@ SET memo_id = (
...
@@ -8,6 +8,6 @@ SET memo_id = (
LIMIT
1
LIMIT
1
);
);
DROP
TABLE
memo_resource
;
CREATE
INDEX
idx_resource_memo_id
ON
resource
(
memo_id
);
CREATE
INDEX
idx_resource_memo_id
ON
resource
(
memo_id
);
DROP
TABLE
IF
EXISTS
memo_resource
;
store/db/migration/prod/0.16/01__drop_shortcut_table.sql
0 → 100644
View file @
71ee299d
DROP
TABLE
IF
EXISTS
shortcut
;
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