Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 867 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 867 Bytes

Convert migration

Convert file txt from dbdiagram to migration file. Made in Viet Nam with love.

Minimum PHP Version

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:

    image

  • Finally, running ./vendor/bin/phptung and files are created in database/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