This is a Database Migrator using Phinx and to fake the data using Faker.
- 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
- 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
- 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
- Repo owner or admin
- Other community or team contact