Update 2025_02_10_194847_fix_non_nullable_postgres_errors.php

pull/7426/head
Daniel Supernault 1 day ago
parent 4cbf74ed4c
commit d86ef9ae52
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -1,7 +1,6 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
@ -17,6 +16,10 @@ return new class extends Migration
public function up(): void
{
Schema::table('statuses', function ($table) {
if (config('database.default') !== 'postgres') {
return;
}
$table->text('caption')->nullable()->change();
$table->text('rendered')->nullable()->change();
});

Loading…
Cancel
Save