tung / export-migration
Tool for exporting db-diagram to migration file
v1.1.0
2022-08-28 11:50 UTC
This package is not auto-updated.
Last update: 2024-06-07 19:21:40 UTC
README
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