mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update migrations, fix broken oauth change
This commit is contained in:
parent
888ea7f07e
commit
4a885c8878
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ class AddProvidersColumnToOauthClientsTable extends Migration
|
|||
public function up()
|
||||
{
|
||||
Schema::table('oauth_clients', function (Blueprint $table) {
|
||||
$table->string('provider')->after('secret')->nullable();
|
||||
if(Schema::hasColumn('oauth_clients', 'provider') == false) {
|
||||
$table->string('provider')->after('secret')->nullable();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue