Skip to content

Resetting the database

Resetting the database schema

Loreley intentionally does not ship migrations. For prototype workflows, the fastest path is to drop all tables and recreate the schema from ORM models.

Warning

This operation is destructive. It will irreversibly drop all tables in the configured database.

Usage

uv run loreley reset-db --yes

Notes

  • The script uses the configured database in loreley.config.Settings (DATABASE_URL or DB_* fields).
  • This is intended for development and local testing environments.