Adding unique key to ipsandports on upgrade

Please guide on checking the correct Froxlor version, not sure how it works
This commit is contained in:
Grigory Morozov
2016-09-26 23:23:11 +07:00
committed by GitHub
parent 06a55ef91e
commit dc428b7de2

View File

@@ -3321,6 +3321,14 @@ if (isFroxlorVersion('0.9.35.1')) {
updateToVersion('0.9.36');
}
if (isFroxlorVersion('0.9.37')) {
showUpdateStep("Updating from 0.9.37 to 0.9.38", false);
showUpdateStep("Adding unique key to ipsandports table");
Database::query("ALTER TABLE `" . TABLE_PANEL_IPSANDPORTS . "` ADD UNIQUE KEY `ip_port` (`ip`,`port`)");
lastStepStatus(0);
updateToVersion('0.9.38');
}
if (isDatabaseVersion('201604270')) {
showUpdateStep("Adding new dns related tables and settings");