Skip to content

Commit

Permalink
fix passport migration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamednizar committed Aug 9, 2020
1 parent 5d06862 commit 066034f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions database/migrations/2020_08_09_172304_drop_oldo_oauth_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ class DropOldoOauthTables extends Migration
*/
public function up()
{
DB::statement("SELECT CONCAT( 'DROP TABLE ', GROUP_CONCAT(table_name) , ';' )
AS statement FROM information_schema.tables
WHERE table_name LIKE 'oauth_auth%';");
Schema::dropIfExists('oauth_access_tokens');
Schema::dropIfExists('oauth_auth_codes');
Schema::dropIfExists('oauth_clients');
Schema::dropIfExists('oauth_personal_access_clients');
Schema::dropIfExists('oauth_refresh_tokens');
DB::table('migrations')->where('migration','like','%_create_oauth_%')
->delete();
}

/**
Expand Down

0 comments on commit 066034f

Please sign in to comment.