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
88c3b1ad
Unverified
Commit
88c3b1ad
authored
Nov 25, 2022
by
boojack
Committed by
GitHub
Nov 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update prod version (#577)
parent
9fe15a03
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
43 deletions
+27
-43
version.go
server/version/version.go
+1
-1
LATEST__SCHEMA.sql
store/db/migration/dev/LATEST__SCHEMA.sql
+0
-12
02__memo_relation.sql
store/db/migration/prod/0.8/02__memo_relation.sql
+0
-11
LATEST__SCHEMA.sql
store/db/migration/prod/LATEST__SCHEMA.sql
+26
-19
No files found.
server/version/version.go
View file @
88c3b1ad
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
// Version is the service current released version.
// Version is the service current released version.
// Semantic versioning: https://semver.org/
// Semantic versioning: https://semver.org/
var
Version
=
"0.
7.3
"
var
Version
=
"0.
8.0
"
// DevVersion is the service current development version.
// DevVersion is the service current development version.
var
DevVersion
=
"0.8.0"
var
DevVersion
=
"0.8.0"
...
...
store/db/migration/dev/LATEST__SCHEMA.sql
View file @
88c3b1ad
...
@@ -86,15 +86,3 @@ CREATE TABLE memo_resource (
...
@@ -86,15 +86,3 @@ CREATE TABLE memo_resource (
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
UNIQUE
(
memo_id
,
resource_id
)
UNIQUE
(
memo_id
,
resource_id
)
);
);
-- memo_relation
CREATE
TABLE
memo_relation
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
memo_id
INTEGER
NOT
NULL
,
related_memo_id
INTEGER
NOT
NULL
,
type
TEXT
NOT
NULL
,
description
TEXT
NOT
NULL
DEFAULT
''
,
UNIQUE
(
memo_id
,
related_memo_id
,
type
)
);
store/db/migration/prod/0.8/02__memo_relation.sql
deleted
100644 → 0
View file @
9fe15a03
-- memo_relation
CREATE
TABLE
memo_relation
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
memo_id
INTEGER
NOT
NULL
,
related_memo_id
INTEGER
NOT
NULL
,
type
TEXT
NOT
NULL
,
description
TEXT
NOT
NULL
DEFAULT
''
,
UNIQUE
(
memo_id
,
related_memo_id
,
type
)
);
store/db/migration/prod/LATEST__SCHEMA.sql
View file @
88c3b1ad
-- migration_history
CREATE
TABLE
migration_history
(
version
TEXT
NOT
NULL
PRIMARY
KEY
,
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
))
);
-- system_setting
CREATE
TABLE
system_setting
(
name
TEXT
NOT
NULL
,
value
TEXT
NOT
NULL
,
description
TEXT
NOT
NULL
DEFAULT
''
,
UNIQUE
(
name
)
);
-- user
-- user
CREATE
TABLE
user
(
CREATE
TABLE
user
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
created_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
updated_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'
,
row_status
TEXT
NOT
NULL
CHECK
(
row_status
IN
(
'NORMAL'
,
'ARCHIVED'
))
DEFAULT
'NORMAL'
,
email
TEXT
NOT
NULL
UNIQUE
,
username
TEXT
NOT
NULL
UNIQUE
,
role
TEXT
NOT
NULL
CHECK
(
role
IN
(
'HOST'
,
'USER'
))
DEFAULT
'USER'
,
role
TEXT
NOT
NULL
CHECK
(
role
IN
(
'HOST'
,
'ADMIN'
,
'USER'
))
DEFAULT
'USER'
,
name
TEXT
NOT
NULL
,
email
TEXT
NOT
NULL
DEFAULT
''
,
nickname
TEXT
NOT
NULL
DEFAULT
''
,
password_hash
TEXT
NOT
NULL
,
password_hash
TEXT
NOT
NULL
,
open_id
TEXT
NOT
NULL
UNIQUE
open_id
TEXT
NOT
NULL
UNIQUE
);
);
-- user_setting
CREATE
TABLE
user_setting
(
user_id
INTEGER
NOT
NULL
,
key
TEXT
NOT
NULL
,
value
TEXT
NOT
NULL
,
UNIQUE
(
user_id
,
key
)
);
-- memo
-- memo
CREATE
TABLE
memo
(
CREATE
TABLE
memo
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
...
@@ -55,14 +78,6 @@ CREATE TABLE resource (
...
@@ -55,14 +78,6 @@ CREATE TABLE resource (
size
INTEGER
NOT
NULL
DEFAULT
0
size
INTEGER
NOT
NULL
DEFAULT
0
);
);
-- user_setting
CREATE
TABLE
user_setting
(
user_id
INTEGER
NOT
NULL
,
key
TEXT
NOT
NULL
,
value
TEXT
NOT
NULL
,
UNIQUE
(
user_id
,
key
)
);
-- memo_resource
-- memo_resource
CREATE
TABLE
memo_resource
(
CREATE
TABLE
memo_resource
(
memo_id
INTEGER
NOT
NULL
,
memo_id
INTEGER
NOT
NULL
,
...
@@ -71,11 +86,3 @@ CREATE TABLE memo_resource (
...
@@ -71,11 +86,3 @@ CREATE TABLE memo_resource (
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
updated_ts
BIGINT
NOT
NULL
DEFAULT
(
strftime
(
'%s'
,
'now'
)),
UNIQUE
(
memo_id
,
resource_id
)
UNIQUE
(
memo_id
,
resource_id
)
);
);
-- system_setting
CREATE
TABLE
system_setting
(
name
TEXT
NOT
NULL
,
value
TEXT
NOT
NULL
,
description
TEXT
NOT
NULL
DEFAULT
''
,
UNIQUE
(
name
)
);
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