Bug 11431: (follow-up) Update database

This patch specifies the collate for the new audio_alerts table to the updatedb entry.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2015-11-25 13:17:52 +00:00 committed by Tomas Cohen Arazi
parent 2036be0b87
commit ecad686d74
2 changed files with 3 additions and 3 deletions

View file

@ -3594,7 +3594,7 @@ CREATE TABLE audio_alerts (
sound varchar(255) NOT NULL,
PRIMARY KEY (id),
KEY precedence (precedence)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

View file

@ -11268,11 +11268,11 @@ if ( CheckVersion($DBversion) ) {
sound varchar(255) NOT NULL,
PRIMARY KEY (id),
KEY precedence (precedence)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
});
$dbh->do(q{
INSERT INTO audio_alerts VALUES
INSERT IGNORE INTO audio_alerts VALUES
(1, 1, '.audio-alert-action', 'opening.ogg'),
(2, 2, '.audio-alert-warning', 'critical.ogg'),
(3, 3, '.audio-alert-success', 'beep.ogg');