From b3d3702df182cfdca5847f5de2bd7c10ec28a2e7 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Dec 2022 18:54:53 +1100 Subject: [PATCH] Fixes for matomo migration --- database/migrations/2022_07_12_45766_add_matomo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/migrations/2022_07_12_45766_add_matomo.php b/database/migrations/2022_07_12_45766_add_matomo.php index 9ac33fdd905d..5df323980c73 100644 --- a/database/migrations/2022_07_12_45766_add_matomo.php +++ b/database/migrations/2022_07_12_45766_add_matomo.php @@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class AddIndexToPaymentHash extends Migration +return new class extends Migration { /** * Run the migrations. @@ -14,8 +14,8 @@ class AddIndexToPaymentHash extends Migration public function up() { Schema::table('companies', function (Blueprint $table) { - $table->varchar('matomo_url')->nullable(); + $table->string('matomo_url',191)->nullable(); $table->bigInteger('matomo_id')->nullable(); }); } -} +}; \ No newline at end of file