This repository serves as an example showcasing the practical usage of the Migrator tool, a command-line utility designed for simplifying database management through migrations.
The primary purpose of this repository is to demonstrate how to integrate and utilize the Migrator tool in a practical scenario, and how to create migrations without a framework. It provides a step-by-step guide on setting up migrations, creating a database schema, and managing the evolution of the database using the Migrator commands.
To get started with the example, follow these steps:
-
Clone the Repository:
git clone https://github.com/guilhermewebdev/migrator-php-example.git
-
Navigate to the Project Directory:
cd migrator-php-example
-
Install Dependencies:
-
Execute:
- Run
docker compose up
- Run
-
Explore the Example: Review the example code and project structure to understand how the Migrator tool is integrated and utilized.
The example project structure includes:
-
Database Migrations: Explore the
migrations
directory to see how migration files are organized. -
Configuration: The project might include a configuration file (e.g.,
migrator.yml
) to specify Migrator settings.
If you have any feedback, questions, or suggestions related to the Migrator tool or this example repository, feel free to open an issue or submit a pull request. Your contributions are highly valued!
This example project is licensed under MIT. Refer to the LICENSE file for more details.
Special thanks to Guilherme Isaías for developing the Migrator tool. Check out the Migrator repository for more information.
Enjoy using the Migrator tool in your database management journey!