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
14fb38f3
Commit
14fb38f3
authored
Jan 07, 2026
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: attachment table name
parent
c29c1d3e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
LATEST.sql
store/migration/mysql/LATEST.sql
+2
-2
LATEST.sql
store/migration/postgres/LATEST.sql
+2
-2
LATEST.sql
store/migration/sqlite/LATEST.sql
+4
-4
No files found.
store/migration/mysql/LATEST.sql
View file @
14fb38f3
...
@@ -58,8 +58,8 @@ CREATE TABLE `memo_relation` (
...
@@ -58,8 +58,8 @@ CREATE TABLE `memo_relation` (
UNIQUE
(
`memo_id`
,
`related_memo_id`
,
`type`
)
UNIQUE
(
`memo_id`
,
`related_memo_id`
,
`type`
)
);
);
--
resource
--
attachment
CREATE
TABLE
`
resource
`
(
CREATE
TABLE
`
attachment
`
(
`id`
INT
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
`id`
INT
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
`uid`
VARCHAR
(
256
)
NOT
NULL
UNIQUE
,
`uid`
VARCHAR
(
256
)
NOT
NULL
UNIQUE
,
`creator_id`
INT
NOT
NULL
,
`creator_id`
INT
NOT
NULL
,
...
...
store/migration/postgres/LATEST.sql
View file @
14fb38f3
...
@@ -58,8 +58,8 @@ CREATE TABLE memo_relation (
...
@@ -58,8 +58,8 @@ CREATE TABLE memo_relation (
UNIQUE
(
memo_id
,
related_memo_id
,
type
)
UNIQUE
(
memo_id
,
related_memo_id
,
type
)
);
);
--
resource
--
attachment
CREATE
TABLE
resource
(
CREATE
TABLE
attachment
(
id
SERIAL
PRIMARY
KEY
,
id
SERIAL
PRIMARY
KEY
,
uid
TEXT
NOT
NULL
UNIQUE
,
uid
TEXT
NOT
NULL
UNIQUE
,
creator_id
INTEGER
NOT
NULL
,
creator_id
INTEGER
NOT
NULL
,
...
...
store/migration/sqlite/LATEST.sql
View file @
14fb38f3
...
@@ -63,8 +63,8 @@ CREATE TABLE memo_relation (
...
@@ -63,8 +63,8 @@ CREATE TABLE memo_relation (
UNIQUE
(
memo_id
,
related_memo_id
,
type
)
UNIQUE
(
memo_id
,
related_memo_id
,
type
)
);
);
--
resource
--
attachment
CREATE
TABLE
resource
(
CREATE
TABLE
attachment
(
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
id
INTEGER
PRIMARY
KEY
AUTOINCREMENT
,
uid
TEXT
NOT
NULL
UNIQUE
,
uid
TEXT
NOT
NULL
UNIQUE
,
creator_id
INTEGER
NOT
NULL
,
creator_id
INTEGER
NOT
NULL
,
...
@@ -80,9 +80,9 @@ CREATE TABLE resource (
...
@@ -80,9 +80,9 @@ CREATE TABLE resource (
payload
TEXT
NOT
NULL
DEFAULT
'{}'
payload
TEXT
NOT
NULL
DEFAULT
'{}'
);
);
CREATE
INDEX
idx_
resource_creator_id
ON
resource
(
creator_id
);
CREATE
INDEX
idx_
attachment_creator_id
ON
attachment
(
creator_id
);
CREATE
INDEX
idx_
resource_memo_id
ON
resource
(
memo_id
);
CREATE
INDEX
idx_
attachment_memo_id
ON
attachment
(
memo_id
);
-- activity
-- activity
CREATE
TABLE
activity
(
CREATE
TABLE
activity
(
...
...
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