1
0
Fork 0
forked from mirror/pixelfed

Update migration

This commit is contained in:
Daniel Supernault 2023-05-07 02:42:16 -06:00
parent 51768083fe
commit 4b309d1acf
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -15,7 +15,7 @@ return new class extends Migration
$type = config('database.default');
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'];
$result = join( ', ', array_map(function ($value){