Skip to content

Run database migrations

Get ready to…

  • Check migration status
  • Run database migrations
  • Verify migrations completed successfully

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.

  1. Check the current migration status:

    Terminal window
    ./paideia migrate status

    This will show you which migrations have been applied and which are pending.

  1. Run all pending migrations:

    Terminal window
    ./paideia migrate up

    This will apply any migrations that haven’t been executed yet.

  2. Verify migrations completed successfully:

    Terminal window
    ./paideia migrate status

    All migrations should now show as “Applied”.

  1. (Optional) Create a database backup before proceeding:

    Terminal window
    ./paideia migrate dump -o backup-before-setup.sql

    This creates a backup of your database that you can restore if needed.

Ask DeepWiki
Contribute Community Sponsor