Fix #17975: Fix deleting unused messages with console command if message tables were created manually (auerswald, cebe)

Co-authored-by: AA <auerswald@users.noreply.github.com>
Co-authored-by: Carsten Brandt <mail@cebe.cc>
This commit is contained in:
Alexander Makarov
2020-05-02 13:45:38 +03:00
committed by GitHub
parent 37fc929285
commit d07cbdaab3
5 changed files with 8 additions and 7 deletions

View File

@ -20,11 +20,11 @@ CREATE TABLE `source_message`
CREATE TABLE `message`
(
`id` integer NOT NULL REFERENCES `source_message` (`id`) ON UPDATE CASCADE ON DELETE NO ACTION,
`id` integer NOT NULL REFERENCES `source_message` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE,
`language` varchar(16) NOT NULL,
`translation` text,
PRIMARY KEY (`id`, `language`)
);
CREATE INDEX idx_message_language ON message (language);
CREATE INDEX idx_source_message_category ON source_message (category);
CREATE INDEX idx_source_message_category ON source_message (category);