Merge pull request #4359 from pixelfed/staging

Update migration
This commit is contained in:
daniel 2023-05-07 02:44:01 -06:00 committed by GitHub
commit 4a97e8003f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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){