release mu-migration 0.5.0

This commit is contained in:
release bot committed 2026-09-30 18:27:16 +00:00
1 parent ff0fdcf23e
commit 836b13e6d1
3 files changed
+6 -6

No files matched your search

+6 -6
View File
@@ -1,13 +1,13 @@
{ {
"name": "MU Migration", "name": "MU Migration",
"slug": "mu-migration", "slug": "mu-migration",
"version": "0.4.0", "version": "0.5.0",
"download_url": "https://gitea.mulligan.casa/wordpress/wp-updates/raw/branch/main/mu-migration/mu-migration-0.4.0.zip", "download_url": "https://gitea.mulligan.casa/wordpress/wp-updates/raw/branch/main/mu-migration/mu-migration-0.5.0.zip",
"homepage": "https://gitea.mulligan.casa/wordpress/mu-migration", "homepage": "https://gitea.mulligan.casa/wordpress/mu-migration",
"requires": "6.1", "requires": "6.1",
"tested": "7.0", "tested": "7.0",
"requires_php": "8.1", "requires_php": "8.1",
"last_updated": "2026-09-16 21:37:57", "last_updated": "2026-09-30 18:27:16",
"author": "Mike Mulligan", "author": "Mike Mulligan",
"author_homepage": "https://gitea.mulligan.casa/mmulligan", "author_homepage": "https://gitea.mulligan.casa/mmulligan",
"tags": [ "tags": [
@@ -18,8 +18,8 @@
"import" "import"
], ],
"sections": { "sections": {
"description": "<p>MU Migration adds a <code>wp mu-migration</code> command family to WP-CLI. It exports a site's tables, users, and optionally its plugins, themes and uploads into one zip package, then imports that package into a multisite network as a new or existing subsite. On import it rewrites the table prefix, remaps user ids into the network's shared users table, runs the URL search-replace, and performs the housekeeping a moved site needs.</p>\n<p>This is a maintained fork of 10up's MU-Migration, which was archived on 2 March 2026. The fork runs on current PHP, ships as an ordinary plugin with self-hosted updates, and is being hardened so every destructive action is explicit, previewable with a dry run, and refused unless acknowledged.</p>\n<p><strong>Commands</strong></p>\n<ul>\n<li><code>wp mu-migration export all &lt;zip&gt;</code> exports tables, users and optionally <code>--plugins</code>, <code>--themes</code>, <code>--uploads</code>.</li>\n<li><code>wp mu-migration export tables &lt;file&gt;</code> and <code>export users &lt;file&gt;</code> export one piece at a time.</li>\n<li><code>wp mu-migration import all &lt;zip&gt;</code> imports a package, creating a subsite or targeting an existing one with <code>--blog_id</code>.</li>\n<li><code>wp mu-migration import tables &lt;file&gt;</code> and <code>import users &lt;file&gt;</code> import one piece at a time.</li>\n<li><code>wp mu-migration posts update_author &lt;map&gt;</code> remaps post authorship to the new user ids.</li>\n<li><code>wp mu-migration users update_passwords</code> resets or replaces passwords after a move.</li>\n<li><code>wp mu-migration info</code> prints the tool's version.</li>\n</ul>\n<p>Full usage, including the safety flags as they land, is documented in the repository README.</p>", "description": "<p>MU Migration adds a <code>wp mu-migration</code> command family to WP-CLI. It exports a site's tables, users, and optionally its plugins, themes and uploads into one zip package, then imports that package into a multisite network as a new or existing subsite, or into a single site. On import it rewrites the table prefix, remaps user ids into the network's shared users table, runs the URL and uploads-path search-replaces, and performs the housekeeping a moved site needs.</p>\n<p>This is a maintained fork of MU-Migration, created by Nícholas André at 10up and archived on 2 March 2026. The fork runs on current PHP, ships as an ordinary plugin with self-hosted updates, and plans every run before it does anything.</p>\n<p><strong>Commands</strong></p>\n<ul>\n<li><code>wp mu-migration export all [&lt;zip&gt;]</code> exports tables, users and meta data, plus <code>--plugins</code>, <code>--themes</code> and <code>--uploads</code> when asked.</li>\n<li><code>wp mu-migration export tables &lt;file&gt;</code> and <code>export users [&lt;file&gt;]</code> export one piece at a time.</li>\n<li>Every export reads one site: <code>--blog-id</code>, or without it the site WP-CLI runs against (<code>--url</code>, or the main site).</li>\n<li><code>wp mu-migration import all &lt;zip&gt;</code> imports a package: into a new subsite at <code>--new-url</code> (or the package's own address with <code>--same-url</code>), or over an existing site with <code>--blog-id</code>.</li>\n<li><code>wp mu-migration import tables &lt;file&gt; --blog-id=&lt;id&gt;</code> and <code>import users &lt;file&gt; --blog-id=&lt;id&gt;</code> import one piece at a time.</li>\n<li><code>wp mu-migration posts update_author &lt;map&gt; --blog-id=&lt;id&gt;</code> remaps post authorship to the new user ids.</li>\n<li><code>wp mu-migration users update_passwords</code> sets or resets passwords after a move.</li>\n<li><code>wp mu-migration info</code> prints the tool's version.</li>\n</ul>\n<p><strong>Plan, refuse, confirm, apply</strong></p>\n<p>Every command first builds a plan by running its real logic against recording executors: reads are real, and every write becomes a plan step with its exact arguments. The dump is copied, rewritten and scanned inside a private work directory, and each search-replace runs as <code>wp search-replace --dry-run --report</code> so the plan carries real counts. The plan is printed before anything is applied.</p>\n<ul>\n<li><code>--dry-run</code> stops there and closes with <code>Dry run: N steps planned; this tool wrote nothing outside its private work directory, which is removed when this run ends.</code> The site's own code can still write: WP-CLI loads the site's theme and plugins, and an import into an existing site previews each search-replace in a child that loads the target site's theme and plugins, which may write as any request to the site would. The closing line, the step, a declined confirmation's <code>Cancelled</code> line and a refusal say so when a preview ran. Before a dry run on a site whose code writes when it loads, back up its tables or rehearse on a copy.</li>\n<li>A step that is dangerous needs its own acknowledgement flag. A live run missing one is refused before any step is applied, naming each flag and the steps that need it; a dry run reports the same list as a warning.</li>\n<li>A live run with anything to change prints a confirmation naming the target, the guarded effects, the flags given and the backup, then asks <code>Continue?</code>. <code>--yes</code> skips the question and acknowledges nothing.</li>\n<li>A live run that would ask is refused when nobody could answer: under <code>--quiet</code>, or when standard input is not an interactive terminal. A live <code>--format=json</code> run needs <code>--yes</code>.</li>\n<li>The plan is applied step by step. The first failure stops the run, names the step and prints recovery guidance.</li>\n</ul>\n<p><strong>Acknowledgement flags</strong></p>\n<ul>\n<li><code>--allow-main-site</code>: any write to the network's main site (or the only site of a single-site install), and every network-wide plugin activation.</li>\n<li><code>--dangerously-allow-drop-tables</code>: a dump that drops a table that exists now.</li>\n<li><code>--dangerously-allow-table-changes</code>: a dump that changes an existing table in place (REPLACE, ALTER, or INSERT without recreating it).</li>\n<li><code>--dangerously-allow-global-tables</code>: widening the search-replaces to the network's users, usermeta, blogs, site and sitemeta tables.</li>\n<li><code>--allow-overwrite</code>: writing an output file over an existing one.</li>\n<li><code>--dangerously-allow-role-overwrite</code>: replacing the role of an existing user who already has one on the target site.</li>\n<li><code>--allow-password-reset-mail</code>: mailing password-reset links, the tool's only outbound network call.</li>\n</ul>\n<p>Two more flags request behaviour that is off by default,Line truncated
"installation": "<ol>\n<li>Upload the plugin to <code>wp-content/plugins/</code> and activate it. On multisite, network activate it so the command is available for every site.</li>\n<li>Install it on both the site you are moving and the network you are moving it to.</li>\n<li>Run <code>wp mu-migration info</code> to confirm the command is registered.</li>\n</ol>\n<p>Updates are delivered through the <code>Update URI</code> header and the Manifest Updater plugin.</p>", "installation": "<ol>\n<li>Upload the plugin to <code>wp-content/plugins/</code> and activate it. On multisite, network activate it so the command is available for every site.</li>\n<li>Install it on both the site you are moving and the network you are moving it to.</li>\n<li>Run <code>wp mu-migration info</code> to confirm the command is registered.</li>\n</ol>\n<p>Requires PHP 8.1 or newer with the <code>zip</code> extension, WordPress 6.1 or newer, and WP-CLI with a <code>mysql</code> or <code>mariadb</code> client that can log in to the database server: the import, the backup and the export run WP-CLI's <code>wp db</code> commands. The MariaDB 11.8 client in the official WP-CLI Docker image cannot load <code>caching_sha2_password</code>, MySQL 8's default; against such a server, use a <code>mysql_native_password</code> database user or a MySQL client. There are no runtime Composer dependencies.</p>\n<p>Updates are delivered through the <code>Update URI</code> header and the Manifest Updater plugin.</p>",
"changelog": "<p><strong>0.4.0</strong><br />\n* Forked from 10up/MU-Migration at its final commit. Packaged as a WordPress plugin with self-hosted updates.<br />\n* Runs on PHP 8.1 through 8.5: the abandoned zip library is replaced by PHP's ZipArchive, CSV calls pass the escape argument PHP 8.4 requires, and site creation uses wp_insert_site. Compatibility work by Brandon Kraft.<br />\n* Fixed site creation reporting id 0 for every new site.<br />\n* PHP floor raised from 7.1 to 8.1. Runtime Composer dependencies removed.<br />\n* Dead code and the retired Travis configuration removed.</p>" "changelog": "<p><strong>0.5.0</strong><br />\n* Breaking: users travel in <code>users.json</code> (format 2) instead of <code>users.csv</code>. A <code>users.csv</code>, or a package from before 0.5.0, is refused: re-export it with this version.<br />\n* Breaking: the <code>mu_migration/export/user/headers</code> filter is removed; what the <code>mu_migration/export/user/data</code> filter returns travels without it.<br />\n* Breaking: every option has one hyphenated spelling (<code>--blog-id</code>, <code>--new-url</code>, <code>--old-url</code> …); the underscore forms 0.4.0 took are refused, naming the new one. Flags take no value and cannot be negated.<br />\n* Breaking: <code>import tables</code> and <code>import users</code> require <code>--blog-id</code>; <code>import all</code> requires <code>--new-url</code> or <code>--same-url</code>; <code>import tables</code> requires <code>--old-url</code> with <code>--new-url</code>, or <code>--same-url</code>. Without <code>--blog-id</code>, the exports read the site WP-CLI runs against, not blog 1.<br />\n* Breaking: a live run that changes anything asks for confirmation (<code>--yes</code> skips it) and is refused when nobody could answer, and each dangerous effect needs its own acknowledgement flag (<code>--allow-main-site</code>, <code>--dangerously-allow-drop-tables</code> and the others listed above).<br />\n* Every run is planned first and the plan printed; <code>--dry-run</code> stops there. <code>--format=json</code> prints the plan and outcome as JSON Lines.<br />\n* An import backs up the target site's own tables first and, when a step fails, prints recovery commands. The dump is fed to the database client on standard input, so the first failed statement fails the import, and row counts are verified afterwards.<br />\n* The table prefix is rewritten in PHP on a copy of the dump, and every dump statement is held to a shape a dump tool writes. Network tables and other sites' tables are never exported, imported or search-replaced unless asked.<br />\n* Users keep every role and every usermeta row, byte for byte, plus capabilities granted outside a role. Application passwords no longer travel. An existing user's role is kept unless you pass <code>--dangerously-allow-role-overwrite</code>.<br />\n* Plugins and themes are installed only with <code>--plugins</code> and <code>--themes</code>, never over an installed copy; uploads are merged without replacing files.<br />\n* Many fixes: raw PHP warnings replaced by errors that name their cause, safer package and work-directory handling, and exact recovery lines. The full list is in the repository's CHANGELOG.md.</p>\n<p><strong>0.4.0</strong><br />\n* Forked from 10up/MU-Migration at its final commit. Packaged as a WordPress plugin with self-hosted updates.<br />\n* Runs on PHP 8.1 through 8.5: the abandoned zip library is replaced by PHP's ZipArchive, CSV calls pass the escape argument PHP 8.4 requires, and site creation uses wp_insert_site. Compatibility work by Brandon Kraft.<br />\n* Fixed site creation reporting id 0 for every new site.<br />\n* PHP floor raised from 7.1 to 8.1. Runtime Composer dependencies removed.<br />\n* Dead code and the retired Travis configuration removed.</p>"
} }
} }
Binary file not shown.
Binary file not shown.