updated foreign key name in messages schema

This commit is contained in:
shockrah 2020-08-02 16:38:50 -07:00
parent 014b6a06c8
commit df395e3b50

View File

@ -7,5 +7,5 @@ CREATE TABLE IF NOT EXISTS `messages`(
`channel_name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`author_id`) REFERENCES members(`id`),
FOREIGN KEY (`channel_id`) REFERENCES channels(`id`)
FOREIGN KEY (`channel_name`) REFERENCES channels(`name`)
);