updated foreign key name in messages schema
This commit is contained in:
@@ -7,5 +7,5 @@ CREATE TABLE IF NOT EXISTS `messages`(
|
|||||||
`channel_name` VARCHAR(255) NOT NULL,
|
`channel_name` VARCHAR(255) NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
FOREIGN KEY (`author_id`) REFERENCES members(`id`),
|
FOREIGN KEY (`author_id`) REFERENCES members(`id`),
|
||||||
FOREIGN KEY (`channel_id`) REFERENCES channels(`id`)
|
FOREIGN KEY (`channel_name`) REFERENCES channels(`name`)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user