mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update migration
This commit is contained in:
parent
51768083fe
commit
4b309d1acf
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ return new class extends Migration
|
||||||
$type = config('database.default');
|
$type = config('database.default');
|
||||||
|
|
||||||
if($type === 'pgsql') {
|
if($type === 'pgsql') {
|
||||||
DB::statement("ALTER TABLE statuses DROP CONSTRAINT statuses_visibility_check");
|
DB::statement("ALTER TABLE statuses DROP CONSTRAINT IF EXISTS statuses_visibility_check");
|
||||||
|
|
||||||
$types = ['public', 'unlisted', 'private', 'direct', 'draft'];
|
$types = ['public', 'unlisted', 'private', 'direct', 'draft'];
|
||||||
$result = join( ', ', array_map(function ($value){
|
$result = join( ', ', array_map(function ($value){
|
||||||
|
|
Loading…
Reference in a new issue