You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There we make a backup in case user has selected Export SQL file with changes and save the replacement within the database Save changes to Database.
Now, I tested and we can use Inpsyde\SearchReplace\Database::db_backup to create the file within the temporary directory.
In this case the two operation are performed within the same http request and may take more time and in case of huge database may create problems. Probably need further test.
Btw, if we implements an ajax way to make the s/r we can make a backup within a directory like wp-content/sr/ and an additional tab within the backend to show a list of old backups.
Also, additional columns may be the search value and the replace one, just to give some context to the user.
Another solution could be adding a required checkbox the user need to flag in order to replace directly into the database that say "I made a backup".
This can be implement fast even if to me isn't the best solution.
The text was updated successfully, but these errors were encountered:
Right know there isn't a mechanism or else that make a backup of the database before the string
The entry point is: https://github.com/inpsyde/search-and-replace/blob/master/inc/Page/SearchReplace.php#L132
There we make a backup in case user has selected
Export SQL file with changes
and save the replacement within the databaseSave changes to Database
.Now, I tested and we can use
Inpsyde\SearchReplace\Database::db_backup
to create the file within the temporary directory.In this case the two operation are performed within the same http request and may take more time and in case of huge database may create problems. Probably need further test.
Btw, if we implements an ajax way to make the s/r we can make a backup within a directory like
wp-content/sr/
and an additional tab within the backend to show a list of old backups.Also, additional columns may be the search value and the replace one, just to give some context to the user.
Another solution could be adding a required checkbox the user need to flag in order to replace directly into the database that say "I made a backup".
This can be implement fast even if to me isn't the best solution.
The text was updated successfully, but these errors were encountered: