Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ The 'perfect' tables definition is as follows:

* Tables should contain a **single column primary key**, better if its name is 'id'
* Relationships have to be declared and always be composed of one single column
* Not frequent datatypes (binary, longtext, ...) have not been tested yet
* Not frequent datatypes (binary, ~longtext~, ...) have not been tested yet

##### INSTALLATION
``composer require pangodream/migbuilder``
```
composer require pangodream/migbuilder
```

##### USAGE
``php artisan migbuilder originschema``
```
php artisan migbuilder:build originschema
```

Migbuilder will read originschema database (originschema is the connection name in Laravel config/app.php file) and will generate the migration, model, seeder and factory files for eaxh of the tables
A good practice is two have two different connections declared in Laravel config/database.php file:
Expand Down