Download the PHP package romanzipp/laravel-migration-generator without Composer
On this page you can find all versions of the php package romanzipp/laravel-migration-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download romanzipp/laravel-migration-generator
More information about romanzipp/laravel-migration-generator
Files in romanzipp/laravel-migration-generator
Package laravel-migration-generator
Short Description Laravel Migration Generator
License MIT
Informations about the package laravel-migration-generator
Laravel Migration Generator
⚠️ WORK IN PROGRESS ⚠️
Generate Laravel migration files from existing databases.
Installation
If you use Laravel 5.5+ you are already done, otherwise continue.
Add Service Provider to your app.php
configuration file:
Configuration
Copy configuration to config folder:
Usage
You will see various new migration files prefixed with the current time & date.
Notice: This package can't guess the order in which migrations will be created. If you've created some foreign keys in your database, be sure to re-order the migration files based on these relations.
Supported Databases
- MySQL
- MariaDB
- SQLite (Info on Datatypes)
Features
- [x] Tables
- [x] Columns
- [x] Column modifiers (nullable, default, ...)
- [ ] Indexes
- [ ] Foreign keys
Testing
There are tests with the following matrix.
- PHP
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- Databases
- SQLite
- MySQL
- MariaDB
- Composer dependency versions
- latest
- lowest
SQLite
MySQL / MariaDB
Requires a running MySQL / MariaDB server
Provide database environment variables
Known issues
- MariaDB: The
JSON
MySQL data type is not supported since Doctrine/DBAL interprets this asDoctrine\DBAL\Types\TextType
- MySQL: Doctrine/DBAL can't differentiate between TEXT, LONGTEXT, MEDIUMTEXT
All versions of laravel-migration-generator with dependencies
ext-json Version *
doctrine/dbal Version ^2.8
illuminate/console Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0