db:reset
Drop all tables and re-apply migrations from scratch.
Usage
splent db:reset [-y]
Examples
Full reset with confirmation prompt:
splent db:reset
Skip confirmation:
splent db:reset -y
Options
| Option | Description |
|---|---|
-y, --yes |
Skip the confirmation prompt. |
Description
Performs a full database reset in this order:
- Drops ALL tables — including data tables,
alembic_<feature>version tables, andsplent_migrations. UsesSET FOREIGN_KEY_CHECKS = 0to handle FK constraints. - Recreates the
splent_migrationstracking table. - Clears uploaded files.
- Re-applies all existing feature migrations via
alembic upgrade head, respecting UVL dependency order (e.g.,authbeforeprofile). Features without amodelsmodule (e.g. config-only features likeadminorphpmyadmin) are silently skipped.
This command destroys all data in the database. Feature migration files are NOT deleted — only the database is wiped and rebuilt.
Migration order
Migrations are applied in dependency order based on UVL constraints, ensuring that tables referenced by foreign keys are created first.
Requirements
SPLENT_APPmust be set.- The database must be reachable.
See also
- db:migrate — Generate and apply new migrations
- db:upgrade — Apply pending migrations
- db:status — Show current migration status
- db:seed — Populate the database after reset