dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
655 stars 141 forks source link

Allow publishing vendor migrations to base migrations directory #90

Closed vaishnavmhetre closed 5 years ago

vaishnavmhetre commented 6 years ago

Request to allow publishing vendor migrations of oauth to base migrations directory.

This shall help eradicating the issue of dissimilar datatype of user_id.

Scenario: Projects using uuid type id as default instead of increments shall manually modify the datatype of user_id field to uuid in oauth migrations.

Several tools are out there to help use vendor publish in Lumen. People like me working on Enterprise solutions using this repository for authentication shall be benifited.

ghost commented 5 years ago

An optional way of doing this is updating the field instead of publishing and changing it's default, like so:

Schema::table('oauth_auth_codes', function (Blueprint $table) {
        $table->string("user_id");
});
vaishnavmhetre commented 5 years ago

An optional way of doing this is updating the field instead of publishing and changing it's default, like so:

Schema::table('oauth_auth_codes', function (Blueprint $table) {
        $table->string("user_id");
});

Thanks for your response @RafaelCorreaQuantik . I manually copied the migrations and changed user_id type to uuid than string.

Closing the issue for no response for the request.