Getting Started¶
Requirements¶
- PHP 8.2+
- PDO
- A supported PDO database driver
Installation¶
Initialize¶
For MySQL/MariaDB:
or:
For PostgreSQL:
For SQLite:
This creates migraw.php and, when necessary, the migrations directory.
you can also use --force to overwrite the current migraw.php file.
Create your first migration¶
By default Migraw generates the template configured in migraw.php.
To run migrations:
You can also use:
Check status¶
Roll back¶
or:
Preview SQL¶
--pretend is also supported.