PHP Luminova: Database Seeding and Migration Tracking
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=TestSeederClear the saved versions of a migration:
php novakit db:clear --lock=migration --class=TestMigrationOptions
| Option | Description |
|---|---|
-l, --lock | Required lock context, either seeder or migration. |
-c, --class | Required migration or seeder class name. |