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
af6a0726
Commit
af6a0726
authored
Jan 08, 2026
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: drop redundant indexes in sqlite migration
parent
1985205d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
02__drop_indexes.sql
store/migration/sqlite/0.26/02__drop_indexes.sql
+4
-0
LATEST.sql
store/migration/sqlite/LATEST.sql
+0
-8
No files found.
store/migration/sqlite/0.26/02__drop_indexes.sql
0 → 100644
View file @
af6a0726
DROP
INDEX
IF
EXISTS
idx_user_username
;
DROP
INDEX
IF
EXISTS
idx_memo_creator_id
;
DROP
INDEX
IF
EXISTS
idx_attachment_creator_id
;
DROP
INDEX
IF
EXISTS
idx_attachment_memo_id
;
store/migration/sqlite/LATEST.sql
View file @
af6a0726
...
...
@@ -21,8 +21,6 @@ CREATE TABLE user (
description
TEXT
NOT
NULL
DEFAULT
''
);
CREATE
INDEX
idx_user_username
ON
user
(
username
);
-- user_setting
CREATE
TABLE
user_setting
(
user_id
INTEGER
NOT
NULL
,
...
...
@@ -45,8 +43,6 @@ CREATE TABLE memo (
payload
TEXT
NOT
NULL
DEFAULT
'{}'
);
CREATE
INDEX
idx_memo_creator_id
ON
memo
(
creator_id
);
-- memo_relation
CREATE
TABLE
memo_relation
(
memo_id
INTEGER
NOT
NULL
,
...
...
@@ -72,10 +68,6 @@ CREATE TABLE attachment (
payload
TEXT
NOT
NULL
DEFAULT
'{}'
);
CREATE
INDEX
idx_attachment_creator_id
ON
attachment
(
creator_id
);
CREATE
INDEX
idx_attachment_memo_id
ON
attachment
(
memo_id
);
-- activity
CREATE
TABLE
activity
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
...
...
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