958 B
958 B
Staging Sync Checklist (MySQL)
This is the exact, minimal checklist to sync live SQL → staging MySQL.
1) Point app to MySQL
Edit app/.env (or set in Coolify ENV):
DB_CONNECTION=mysql
DB_HOST=YOUR_MYSQL_HOST
DB_PORT=3306
DB_DATABASE=YOUR_DB
DB_USERNAME=YOUR_USER
DB_PASSWORD=YOUR_PASS
2) Run migrations + import
cd /Users/dwindown/Developments/dewemoji/app
php artisan migrate
php artisan dewemoji:import-live-sql /Users/dwindown/Developments/dewemoji-live-backend/dewemojiAPI_DB.sql --truncate
3) Quick sanity checks
php artisan tinker --execute="echo DB::table('emojis')->count().PHP_EOL;"
php artisan tinker --execute="echo DB::table('emoji_keywords')->count().PHP_EOL;"
Expected: emojis ~ 2131, emoji_keywords ~ 13420.
Notes
- Live
users+sessionsare imported intolegacy_users+legacy_sessions. - Licenses/activations/usage logs are imported into current tables for parity.