https://github.com/justcoded/wp-host-update
Database migration tool for WordPress CMS
https://github.com/justcoded/wp-host-update
database-migrations mvc php script wordpress wordpress-database
Last synced: 5 months ago
JSON representation
Database migration tool for WordPress CMS
- Host: GitHub
- URL: https://github.com/justcoded/wp-host-update
- Owner: justcoded
- Created: 2016-04-06T16:39:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-02T17:32:33.000Z (about 9 years ago)
- Last Synced: 2025-04-02T21:11:09.486Z (9 months ago)
- Topics: database-migrations, mvc, php, script, wordpress, wordpress-database
- Language: PHP
- Size: 89.8 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WordPress Database migration (string replacement) script
---
When you move WordPress to another host you usually need to update database with new URLs inside a lot of pages. Such URLs can be placed inside serialized strings, BLOBs or objects.
This is a tool to simplify string replace operations across the whole WordPress database or specific tables.
#### Script usage
* Download latest stable tag.
* Find the file `/build/wp-host-update.php` and copy it to your folder with WordPress installation.
* **Backup your database!**
* Open in your browser `http://domain.com/optional/path/to/wordpress/wp-host-update.php` (replace with your WordPress URL at the beginning)
* Follow the instructions in your browser.
* If everything was fine - remove script from production server!
(In case of fail - use your backup to restore the database and try one more time)
#### Repository structure
Repository has 2 parts:
1. The script source files inside `/app/` folder. These super simple MVC/OOP scripts which process page requests and views render.
2. In the root folder you can find `builder.php` file. This one is used to collect all "app" into one single script and compress it a bit to minimize file size.
#### Changelog
* Version 2.1202.*
* Added new option to run "light weight" replace. It skips numeric fields and some special fields like dates, meta_keys etc.
* Added support for run queries in blocks to prevent memory limit on tables with too many rows
* Version 2.1201.*
* Reset time limit to prevent script to be blocked by timeout
* Version 2
* Convert all fields in all tables.
* Simple MVC framework with minimizer/builder.