Getting Started
Migration
How to migrate your old panel to latest panel
Migrating from XMPlus old panels
Install new panel and follow instruction below to migrate.
If you are running new panel on a different server, make sure the IP is whitelisted in the old panel mysql database(phpmyadmin),and can accept connection from it. And allow old database port(eg, 3306) access for the ip over internet.
Set you old database info in .env file located in
/home/XMPlusPanel/.env
# fill in the remote database info for old panel
SOURCE_DB_HOST=127.0.0.1 # Old panel database ip
SOURCE_DB_PORT=3306 # Old panel database port
SOURCE_DB_DATABASE=xmplus # Old panel database name
SOURCE_DB_USERNAME=root # Old panel database username
SOURCE_DB_PASSWORD=xxxxxxxx # Old panel database password
Restart panel. Run command:
xmpanel restart
Migration commands
You must migrate on a fresh database
docker exec -it api php artisan migrate:fresh --seed
Optional Dry Run to check preview. This does not upsert data into the database.
# dry run first to preview (v1)
docker exec -it api php artisan xmplus:migrate --panel-type=v1 --dry-run
# dry run first to preview (v3)
docker exec -it api php artisan xmplus:migrate --panel-type=v3 --dry-run
# dry run first to preview (v2)
docker exec -it api php artisan xmplus:migrate-v2 --dry-run
Run full migration to upsert database
# Full migration (v1)
docker exec -it api php artisan xmplus:migrate --panel-type=v1
# Full migration (v3)
docker exec -it api php artisan xmplus:migrate --panel-type=v3
# Full migration (v2)
docker exec -it api php artisan xmplus:migrate-v2
