Skip to content

This can be used to start a database migration using Phinx and Faker

Notifications You must be signed in to change notification settings

marprin/database-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is a Database Migrator using Phinx and to fake the data using Faker.

Steps to Set up Database Migrator and Seeder

  • Clone the repository first to your computer
  • composer install (make sure your computer already got installed with php and composer)
  • Copy phinx.yml.example to phinx.yml
  • Set the environment on phinx.yml based on needed

How do I get run the Database Migrator and Seeder?

  • php vendor/bin/phinx create migrationName -> to create the migration
  • php vendor/bin/phinx migrate -> to run the migration
  • php vendor/bin/phinx migrate -e testing -> to run the migration based on environment
  • php vendor/bin/phinx seed:create TableSeeder -> to create a seeder based on table
  • php vendor/bin/phinx seed:run -> run all created seeder on seeder folder
  • php vendor/bin/phinx seed:run -s TableSeeder -> to run the specific seeder

Contribution guidelines

  • Writing migration
  • Writing seeder
  • git checkout -b branch-name
  • git commit -am "commit message"
  • git push origin branch-name
  • Create pull request
  • Wait for the pull request being reviewed and approved

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact

About

This can be used to start a database migration using Phinx and Faker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages