mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +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()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('oauth_clients', function (Blueprint $table) {
|
Schema::table('oauth_clients', function (Blueprint $table) {
|
||||||
|
if(Schema::hasColumn('oauth_clients', 'provider') == false) {
|
||||||
$table->string('provider')->after('secret')->nullable();
|
$table->string('provider')->after('secret')->nullable();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue