flipboxstudio / lumen-generator

A Lumen Generator You Are Missing
https://packagist.org/packages/flipbox/lumen-generator
MIT License
824 stars 126 forks source link

Add schema:dump command #100

Closed jorgemudry closed 3 years ago

jorgemudry commented 3 years ago

What does this Pull Request Do?

It adds the schema:dump command (issue: https://github.com/flipboxstudio/lumen-generator/issues/94).

🔴 NOTE: You must have the component illuminate/database using the version >=v8.12.0 (because of this change)

How should this be manually tested?

  1. Add the fork to your composer.json file:
    "require": {
        "php": "^7.3|^8.0",
        "laravel/lumen-framework": "^8.0",
        "flipbox/lumen-generator": "dev-feature_add_schema_dump_command"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/jorgemudry/lumen-generator"
        }
    ]
  1. Install the package:
$ composer update flipbox/lumen-generator;
  1. Use the schema:dump command:
$ php artisan schema:dump
  1. You should end up with a your-connection-name-schema.dump file in your database/schema directory.

Any background context you want to provide?

N/A

Any extra info?

anne

jorgemudry commented 3 years ago

@aqidd are you worried about this PR's requirement?

joelhy commented 3 years ago

@aqidd I would like to propose that adding @jorgemudry as a collaborator.

aqidd commented 3 years ago

Hi guys sorry I was super busy with my thesis that I forgot about this one. There was a conflict before so I didn't merge it with the last release.

Good idea @joelhy - would you like to be a contributor @jorgemudry ?

jorgemudry commented 3 years ago

@aqidd @joelhy I have no idea what that means but yes, of course 😃

joelhy commented 3 years ago

That means you can merge pull request, manage comments, issues, and create new release etc. Welcome aboard! @jorgemudry

Collaborator's permission list: https://docs.github.com/en/free-pro-team@latest/github/setting-up-and-managing-your-github-user-account/permission-levels-for-a-user-account-repository#collaborator-access-for-a-repository-owned-by-a-user-account

jorgemudry commented 3 years ago

@joelhy thanks!!! 😃