pdnsops2 / pdnsops

PDNSOps2 - A PHP based PowerDNS database manager
http://pdnsops.com
GNU General Public License v2.0
13 stars 5 forks source link

Install erases all existing database records #17

Open ShakataGaNai opened 12 years ago

ShakataGaNai commented 12 years ago

If you have a records, domains and supermasters table in the database already (with records) and run the installer, all data is erased. This is suboptimal because I'd assume people are going to upgrade from PDNSOps Mk1, come across from another system, or have been running the phpmyadmin style of administration previously.

bdamer commented 12 years ago

Updated schema.mysql.sql to only create records, domains and supermasters if tables do not yet exist. This will still reset our own tables - if that shouldn't happen, it should probably be handled through a checkbox on the installer form itself, and not the SQL.