Skip to content

Upgrade Guide assumes Migration Customization #1264

Closed
@caugner

Description

@caugner
  • Passport Version: 8.5.0 => 9.1.0
  • Laravel Version: 7.10.3
  • PHP Version: 7.3.17
  • Database Driver & Version: pdo_pgsql

Description:

The Upgrade Guide explains in the Support For Multiple Guards section that a provider column must be added to the oauth_clients database table.

However, the migration provided only works if Migration Customization is used and php artisan vendor:publish --tag=passport-migrations was executed prior to the update.

Otherwise, the migration will fail on fresh installations, because the column is already introduced by the (updated) default migration.

Steps To Reproduce:

  1. composer require laravel/passport:^8
  2. php artisan migrate
  3. composer require laravel/passport:^9
  4. php artisan make:migration PassportUpgradeTo9Dot0
  5. (Copy suggested migration.)
  6. php artisan migrate (works)
  7. php artisan migrate:fresh (fails)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions