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
1985205d
Commit
1985205d
authored
Jan 08, 2026
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove memo_organizer table
parent
f4cf2e95
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
25 deletions
+4
-25
01__drop_memo_organizer.sql
store/migration/mysql/0.26/01__drop_memo_organizer.sql
+1
-0
LATEST.sql
store/migration/mysql/LATEST.sql
+0
-8
01__drop_memo_organizer.sql
store/migration/postgres/0.26/01__drop_memo_organizer.sql
+1
-0
LATEST.sql
store/migration/postgres/LATEST.sql
+0
-8
01__drop_memo_organizer.sql
store/migration/sqlite/0.26/01__drop_memo_organizer.sql
+1
-0
LATEST.sql
store/migration/sqlite/LATEST.sql
+0
-8
migrator_test.go
store/test/migrator_test.go
+1
-1
No files found.
store/migration/mysql/0.26/01__drop_memo_organizer.sql
0 → 100644
View file @
1985205d
DROP
TABLE
IF
EXISTS
memo_organizer
;
store/migration/mysql/LATEST.sql
View file @
1985205d
...
@@ -42,14 +42,6 @@ CREATE TABLE `memo` (
...
@@ -42,14 +42,6 @@ CREATE TABLE `memo` (
`payload`
JSON
NOT
NULL
`payload`
JSON
NOT
NULL
);
);
-- memo_organizer
CREATE
TABLE
`memo_organizer`
(
`memo_id`
INT
NOT
NULL
,
`user_id`
INT
NOT
NULL
,
`pinned`
INT
NOT
NULL
DEFAULT
'0'
,
UNIQUE
(
`memo_id`
,
`user_id`
)
);
-- memo_relation
-- memo_relation
CREATE
TABLE
`memo_relation`
(
CREATE
TABLE
`memo_relation`
(
`memo_id`
INT
NOT
NULL
,
`memo_id`
INT
NOT
NULL
,
...
...
store/migration/postgres/0.26/01__drop_memo_organizer.sql
0 → 100644
View file @
1985205d
DROP
TABLE
IF
EXISTS
memo_organizer
;
store/migration/postgres/LATEST.sql
View file @
1985205d
...
@@ -42,14 +42,6 @@ CREATE TABLE memo (
...
@@ -42,14 +42,6 @@ CREATE TABLE memo (
payload
JSONB
NOT
NULL
DEFAULT
'{}'
payload
JSONB
NOT
NULL
DEFAULT
'{}'
);
);
-- memo_organizer
CREATE
TABLE
memo_organizer
(
memo_id
INTEGER
NOT
NULL
,
user_id
INTEGER
NOT
NULL
,
pinned
INTEGER
NOT
NULL
DEFAULT
0
,
UNIQUE
(
memo_id
,
user_id
)
);
-- memo_relation
-- memo_relation
CREATE
TABLE
memo_relation
(
CREATE
TABLE
memo_relation
(
memo_id
INTEGER
NOT
NULL
,
memo_id
INTEGER
NOT
NULL
,
...
...
store/migration/sqlite/0.26/01__drop_memo_organizer.sql
0 → 100644
View file @
1985205d
DROP
TABLE
IF
EXISTS
memo_organizer
;
store/migration/sqlite/LATEST.sql
View file @
1985205d
...
@@ -47,14 +47,6 @@ CREATE TABLE memo (
...
@@ -47,14 +47,6 @@ CREATE TABLE memo (
CREATE
INDEX
idx_memo_creator_id
ON
memo
(
creator_id
);
CREATE
INDEX
idx_memo_creator_id
ON
memo
(
creator_id
);
-- memo_organizer
CREATE
TABLE
memo_organizer
(
memo_id
INTEGER
NOT
NULL
,
user_id
INTEGER
NOT
NULL
,
pinned
INTEGER
NOT
NULL
CHECK
(
pinned
IN
(
0
,
1
))
DEFAULT
0
,
UNIQUE
(
memo_id
,
user_id
)
);
-- memo_relation
-- memo_relation
CREATE
TABLE
memo_relation
(
CREATE
TABLE
memo_relation
(
memo_id
INTEGER
NOT
NULL
,
memo_id
INTEGER
NOT
NULL
,
...
...
store/test/migrator_test.go
View file @
1985205d
...
@@ -16,7 +16,7 @@ func TestGetCurrentSchemaVersion(t *testing.T) {
...
@@ -16,7 +16,7 @@ func TestGetCurrentSchemaVersion(t *testing.T) {
currentSchemaVersion
,
err
:=
ts
.
GetCurrentSchemaVersion
()
currentSchemaVersion
,
err
:=
ts
.
GetCurrentSchemaVersion
()
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
require
.
Equal
(
t
,
"0.26.
1
"
,
currentSchemaVersion
)
require
.
Equal
(
t
,
"0.26.
2
"
,
currentSchemaVersion
)
}
}
// TestFreshInstall verifies that LATEST.sql applies correctly on a fresh database.
// TestFreshInstall verifies that LATEST.sql applies correctly on a fresh database.
...
...
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