Run database migrations
本頁內容尚未翻譯。
準備好……
- Check migration status
- Run database migrations
- Verify migrations completed successfully
Run database migrations
Section titled “Run database migrations”Paideia LMS uses database migrations to set up and update your database schema. When you first run Paideia LMS, migrations are automatically applied during startup. However, you can also run migrations manually using the CLI.
Check migration status
Section titled “Check migration status”-
Check the current migration status:
Terminal window ./paideia migrate statusThis will show you which migrations have been applied and which are pending.
Run migrations
Section titled “Run migrations”-
Run all pending migrations:
Terminal window ./paideia migrate upThis will apply any migrations that haven’t been executed yet.
-
Verify migrations completed successfully:
Terminal window ./paideia migrate statusAll migrations should now show as “Applied”.
Database backup
Section titled “Database backup”-
(Optional) Create a database backup before proceeding:
Terminal window ./paideia migrate dump -o backup-before-setup.sqlThis creates a backup of your database that you can restore if needed.
Checklist
Section titled “Checklist”Resources
Section titled “Resources”-
CLI Reference internal — complete reference for Paideia LMS CLI commands
-
Upgrading Paideia LMS internal — guide for upgrading and managing migrations
