tung / export-migration
Tool for exporting db-diagram to migration file
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tung/export-migration
This package is not auto-updated.
Last update: 2025-12-20 03:04:24 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.txtin the top-most directory of your project. -
Copy text format from dbdiagram and paste into
export-migration.txt: -
Finally, running
./vendor/bin/phptungand 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
