Skip to content

tungtt1006/convert_migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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