Closed Jimmi08 closed 1 year ago
According to the Git history, that DROP DATABASE
was added in an attempt to fix https://github.com/e107inc/e107/issues/676.
I agree with you that it is not a nice solution, so perhaps we should turn this question into a feature request to make the installer not delete the database.
It is working correctly now. If you check Create database, old database is created. If you left this unchecked. you get warning about database exists but foreign tables are left untouched.
Question
Why - when installing e107 to the existing database - do you drop all tables and not only e107 tables?
if($this->dbqry('DROP DATABASE
'.$this->previous_steps['mysql']['db'].''))
Just from curiosity. I am aware of this and there is the message that data will be deleted, so no problem, but I never met something like this with other CMS. Normally there is a list of tables and those tables are deleted.
What I am doing now: Back up the existing database, export it, install e107 and then import the original database back.
Am I right that if you would delete only tables with the set prefix, it would still delete tables with these settings: Original DB:
e107_wpx_
New E107 DB:e107_
Thanks for your time