ThemeFuse / Unyson-Backups-Extension

Backup & Demo Content - This extension lets you create an automated backup schedule, import demo content or even create a demo content archive for migration purposes.
http://manual.unyson.io/en/latest/extension/backups/
10 stars 17 forks source link

Database Restore, case sensitive table name #45

Closed GheorgheP closed 7 years ago

GheorgheP commented 7 years ago

If the $table_prefix variable in wp-config.php uses both upper and lower cases you may en with such error during database restore step:

Failed to create the _fwbk_myprefix_posts table. Table myprefix_posts already exists.

It is because that the str_replace functions is case sensitive, but the tmp table is created with lowercase prefix, but in $sql the prefix may be with uppercase.

GheorgheP commented 7 years ago

https://github.com/ThemeFuse/Unyson-Backups-Extension/commit/a0dc705c9c9333458dffecce28eea6e47e8218e6