Skip to content

Commit 14fb38f

Browse files
committed
fix: attachment table name
1 parent c29c1d3 commit 14fb38f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

store/migration/mysql/LATEST.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ CREATE TABLE `memo_relation` (
5858
UNIQUE(`memo_id`,`related_memo_id`,`type`)
5959
);
6060

61-
-- resource
62-
CREATE TABLE `resource` (
61+
-- attachment
62+
CREATE TABLE `attachment` (
6363
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
6464
`uid` VARCHAR(256) NOT NULL UNIQUE,
6565
`creator_id` INT NOT NULL,

store/migration/postgres/LATEST.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ CREATE TABLE memo_relation (
5858
UNIQUE(memo_id, related_memo_id, type)
5959
);
6060

61-
-- resource
62-
CREATE TABLE resource (
61+
-- attachment
62+
CREATE TABLE attachment (
6363
id SERIAL PRIMARY KEY,
6464
uid TEXT NOT NULL UNIQUE,
6565
creator_id INTEGER NOT NULL,

store/migration/sqlite/LATEST.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ CREATE TABLE memo_relation (
6363
UNIQUE(memo_id, related_memo_id, type)
6464
);
6565

66-
-- resource
67-
CREATE TABLE resource (
66+
-- attachment
67+
CREATE TABLE attachment (
6868
id INTEGER PRIMARY KEY AUTOINCREMENT,
6969
uid TEXT NOT NULL UNIQUE,
7070
creator_id INTEGER NOT NULL,
@@ -80,9 +80,9 @@ CREATE TABLE resource (
8080
payload TEXT NOT NULL DEFAULT '{}'
8181
);
8282

83-
CREATE INDEX idx_resource_creator_id ON resource (creator_id);
83+
CREATE INDEX idx_attachment_creator_id ON attachment (creator_id);
8484

85-
CREATE INDEX idx_resource_memo_id ON resource (memo_id);
85+
CREATE INDEX idx_attachment_memo_id ON attachment (memo_id);
8686

8787
-- activity
8888
CREATE TABLE activity (

0 commit comments

Comments
 (0)