Typo in ALTER TABLE for mysql_servers upgrade

pull/1434/head
René Cannaò 8 years ago
parent 1f627ec552
commit 5bf50992ba

@ -7851,7 +7851,7 @@ void ProxySQL_Admin::disk_upgrade_mysql_servers() {
//drop any existing table with suffix _v144
configdb->execute("DROP TABLE IF EXISTS mysql_servers_v144");
// rename current table to add suffix _v144
configdb->execute("ALTER TABLE mysql_servers RENAME TO mysql_servers_v44");
configdb->execute("ALTER TABLE mysql_servers RENAME TO mysql_servers_v144");
// create new table
configdb->build_table((char *)"mysql_servers",(char *)ADMIN_SQLITE_TABLE_MYSQL_SERVERS,false);
// copy fields from old table

Loading…
Cancel
Save