Skip to content

Commit

Permalink
fix: notification テーブルの外部キー制約をかけるカラム名の指定ミスを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Nov 21, 2024
1 parent 4c3c055 commit b05fa26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/migration/src/m20220101_000001_create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl MigrationTrait for Migration {
recipient_id CHAR(36) NOT NULL,
related_id UUID NOT NULL,
is_read BOOL DEFAULT FALSE NOT NULL,
FOREIGN KEY fk_notification_recipient(recipient) REFERENCES users(id)
FOREIGN KEY fk_notification_recipient_id(recipient_id) REFERENCES users(id)
)",
))
.await?;
Expand Down

0 comments on commit b05fa26

Please sign in to comment.