Convert migration
Convert file txt from dbdiagram to migration file. Made in Viet Nam with love.
Usage
- Install package:
composer require tung/export-migration
-
Create file
export-migration.txt
in the top-most directory of your project. -
Copy text format from dbdiagram and paste into
export-migration.txt
: -
Finally, running
./vendor/bin/phptung
and files are created indatabase/migrations
.
Set up Docker for dev
- Build image:
docker build -f ./docker/Dockerfile -t convert_migration .
- Run container:
docker run -v $(pwd):/var/www/html -p 8000:8000 --name convert convert_migration