Skip to content

Migration Assistant

This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

FieldValue
Composer packagecapell-app/migration-assistant
Package slugmigration-assistant
Product groupCapell Operations
Tierfree
Bundleoperations
Runtime contextsadmin, console
Capell version^1.0
Catalogue roleextension
Release channelReleased
Source repositorycapell-app/migration-assistant
Docs sourcepackages/migration-assistant/docs
Manifestcapell.json

If your team runs more than one Capell site, you move pages or a whole site between them in the admin. An import there goes through a review before anything is written.

You build a package file from a page or a whole site with a command, copy it across, and upload it in the admin under Import Pages or Import Sites. The review lists every page in the file. Where an address already exists on the target site, you choose what happens to that page. Layouts and images are matched to those already on the target, and you choose what happens to the rest. After a validation step you type a confirmation phrase and the import is queued.

The writing happens in background jobs, which your host or developer must have running. Before it writes, it checks again that the person who started the import is still allowed to. With Publishing Studio installed, imports land in a draft workspace you name.

Two commands undo an import. One lists the records it created, the other removes those nobody has edited since, and a preview run shows the result first. Each import then appears in the Import Sessions list in the admin with its status.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/admin ^1.0.78, capell-app/core ^1.0.79, illuminate/database ^11.0|^12.0|^13.0, illuminate/support ^12.41.1|^13.0, lorisleiva/laravel-actions ^2.8, spatie/laravel-package-tools ^1.15.
  • Install: composer require capell-app/migration-assistant.
  1. Install the package: composer require capell-app/migration-assistant.
  2. Open the package admin surface at /admin/migration-assistant/import-sessions and confirm Migration Assistant is available.

Source, target, and executor registries support file and database imports; database executors validate a previewed schema and track source keys for repeat imports.

  • Configuration files: config/migration-assistant.php.
  • Commands: php artisan migration-assistant:export, php artisan migration-assistant:import, php artisan migration-assistant:prune, php artisan migration-assistant:reclaim-stale, php artisan migration-assistant:rollback-execute, php artisan migration-assistant:rollback-report, php artisan migration-assistant:status.
  • Install the required Capell packages at the versions in composer.json: capell-app/admin ^1.0.78, capell-app/core ^1.0.79.
  • Run migrations before opening package resources or public routes.
  • Keep the host Laravel scheduler running so package-registered schedules can execute: migration-assistant:reclaim-stale (everyTenMinutes; manifest declared).

Import session index or host admin surfaceImport session index or host admin surface

Completed page import and recovery reportCompleted page import and recovery report

  • Import session index or host admin surface (admin).
  • Import validation summary (admin).
  • Completed page import and recovery report (admin).
  • Relation resolution review (admin).
  • Rollback report view (admin).
  • Import session index or host admin surface with admin sidebar menu open (admin).
  • Required packages: capell-app/admin, capell-app/core.
  • Admin navigation: declares admin-page: ImportPagesPageContribution, admin-page: ImportSitesPageContribution, admin-resource: ImportSessionResourceContribution; each Filament page or resource controls its own navigation visibility.
  • Admin/editor extensions: none declared.
  • Permissions: page.export, page.import, page.import.update-shared-relations, page.import.publish-live, import-session.view, import-session.cancel, import-session.retry, import-session.rollback, import-session.legal-hold; Shield-generated page permissions for Capell\MigrationAssistant\Filament\Pages\ImportPagesPage (names and grants depend on host Shield configuration); access also governed by package policies: ImportSessionPolicy.
  • Public routes: none declared.
  • Database changes: package migrations are declared.
  • Config: config/migration-assistant.php.
  • Settings: no package settings declared.
  • Queues or schedules: scheduled commands migration-assistant:reclaim-stale (everyTenMinutes; manifest declared); queue jobs ExecuteImportPlanJob.
  • Cache tags: none declared.
  • Commands: migration-assistant:export, migration-assistant:import, migration-assistant:prune, migration-assistant:reclaim-stale, migration-assistant:rollback-execute, migration-assistant:rollback-report, migration-assistant:status.
SymptomLikely causeCheckFix
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Admin screen or command fails on missing tablePackage migrations have not runCheck the tables listed in Data ModelRun host migrations and rerun the focused package test
Background work does not runQueue worker or declared schedule is not activeCheck the jobs and scheduled commands listed in Technical ShapeStart the queue worker or host scheduler, then run the focused command or package test
A package upload fails in the admin before the import review opensLivewire checks every temporary upload against livewire.temporary_file_upload.rules, whose default limit (12 MB) is lower than the package limitCompare the package size with the max: rule in config/livewire.php and with migration-assistant.limits.max_package_upload_kilobytesPublish the Livewire config and raise the max: value in temporary_file_upload.rules to at least the package limit, or import the file with php artisan migration-assistant:import
migration-assistant:import --execute or --sync stops before creating a sessionAn import that writes pages runs as a named user, and no --actor was given or that user cannot import pagesRead the error the command printedRun the command again with --actor=<user id> for a user who holds the page import permission

No manual steps between minor versions.

Read CHANGELOG.md before upgrading.