Fixes for matomo migration

This commit is contained in:
David Bomba 2022-12-07 18:54:53 +11:00
parent 647f28ab02
commit b3d3702df1

View File

@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class AddIndexToPaymentHash extends Migration return new class extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -14,8 +14,8 @@ class AddIndexToPaymentHash extends Migration
public function up() public function up()
{ {
Schema::table('companies', function (Blueprint $table) { Schema::table('companies', function (Blueprint $table) {
$table->varchar('matomo_url')->nullable(); $table->string('matomo_url',191)->nullable();
$table->bigInteger('matomo_id')->nullable(); $table->bigInteger('matomo_id')->nullable();
}); });
} }
} };