Expand webmentions source and target columns to text
Long brid.gy Bluesky source URLs exceed 255 characters, causing SQLSTATE[22001] errors. Changed source and target from varchar(255) to text (no performance impact in PostgreSQL). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1137d2a07e
commit
0a13d27d6f
3 changed files with 60 additions and 2 deletions
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('webmentions', function (Blueprint $table) {
|
||||
$table->text('source')->change();
|
||||
$table->text('target')->change();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('webmentions', function (Blueprint $table) {
|
||||
$table->string('source')->change();
|
||||
$table->string('target')->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue