Files
2026-04-18 17:02:56 +02:00

860 B

Import legacy News into Skinbase

  1. Add these environment variables to your .env (or set in your environment):
  • LEGACY_DB_HOST
  • LEGACY_DB_PORT (optional, default 3306)
  • LEGACY_DB_DATABASE
  • LEGACY_DB_USERNAME
  • LEGACY_DB_PASSWORD
  1. Run a dry-run to preview what will be imported:
php artisan news:import-legacy --dry-run --limit=100
  1. Run the actual import in batches:
php artisan news:import-legacy --start=0 --limit=500
php artisan news:import-legacy --start=500 --limit=500

Notes:

  • The importer maps legacy news fields conservatively. You should review and adapt the mapping in app/Console/Commands/ImportLegacyNewsCommand.php before running a full import.
  • Author and category mapping is best-effort (falls back to user id 1 and null category). Adjust mapping logic if you want to preserve authors/categories.