Download the PHP package eril/schemage without Composer
On this page you can find all versions of the php package eril/schemage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eril/schemage
More information about eril/schemage
Files in eril/schemage
Package schemage
Short Description Schema-first database migration engine for PHP.
License MIT
Homepage https://erilshackle.github.io/php-schemage/
Informations about the package schemage
Schemage
Schema-first database migrations for PHP.
Schemage lets you describe the desired database structure with a clean PHP DSL, compare it with the current database, review a migration plan, generate SQL, and apply the required changes through a lightweight CLI.
Features
- Schema-first PHP DSL
- MySQL, MariaDB, and SQLite support
- Database introspection and schema diffing
- Table, column, index, and foreign-key operations
- Explicit table and column renames
- Driver-specific operation planning
- Interactive migration plans
- Dry-run and SQL export modes
- Migration history and rollback support
- Destructive-operation protection
- Optional model generation
Installation
Quick Start
Preview pending changes:
Apply interactively:
Apply without confirmation:
For non-interactive destructive migrations:
Initial Data
Tables may declare default rows using seed():
Declared rows are inserted automatically after migrations and ignored if they already exist.
Documentation
Full documentation is available online:
https://erilshackle.github.io/php-schemage/
Documentation includes:
Start with:
docs/getting-started.mddocs/schema.mddocs/columns.mddocs/indexes.mddocs/foreign-keys.mddocs/cli.md
License
MIT
All versions of schemage with dependencies
ext-pdo Version *