fix(#49): allow long polling URL for plugins

This commit is contained in:
Carl Kittelberger 2025-06-20 18:42:08 +02:00 committed by Benjamin Nussbaum
parent 7590a9d64a
commit 0c5a69e8c1

View file

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table("plugins", function (Blueprint $table) {
$table->string('polling_url', 1024)->nullable()->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table("plugins", function (Blueprint $table) {
// old default string length value in Illuminate
$table->string('polling_url', 255)->nullable()->change();
});
}
};