Luminova Framework

PHP Luminova: Database Seeding and Migration Tracking

Last updated: 2026-11-28 20:57:12

Database Version Control is an essential tool for managing and cleaning up lock files and old migration or seeder files. By using `db:clear` command, you can ensure a tidy development environment.

The Database Version Control uses db:clear command to manage and clean up lock files and old migration or seeder files.This command helps maintain a clean working environment by removing unnecessary files that can clutter the system or cause conflicts during development and deployment processes.

Clearing Lock Entries

Run db:clear with a lock context and a class name. The command removes saved backup versions for that class and updates the corresponding lock file under writeable/locks/database/.

Usage Examples

Clear the saved versions of a seeder:

php novakit db:clear --lock=seeder --class=TestSeeder

Clear the saved versions of a migration:

php novakit db:clear --lock=migration --class=TestMigration

Options

OptionDescription
-l, --lockRequired lock context, either seeder or migration.
-c, --classRequired migration or seeder class name.