You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE TABLE `messagecategory` (
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`message_id` bigint(20) NOT NULL,
`category_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `ix_messagecategory_category_id` (`category_id`),
KEY `ix_messagecategory_created_at` (`created_at`),
KEY `message_category_ids` (`message_id`,`category_id`)
);
Notice that there are no foreign key constraints on message_id and category_id columns. This can lead to to data corruption and exceptions on Python side. We should investigate if they were omitted on purpose. If not we should add them.
The text was updated successfully, but these errors were encountered:
Currently the table looks like this:
Notice that there are no foreign key constraints on
message_id
andcategory_id
columns. This can lead to to data corruption and exceptions on Python side. We should investigate if they were omitted on purpose. If not we should add them.The text was updated successfully, but these errors were encountered: