From c7809a2ad0e8141267c591dc9857079ec4f49096 Mon Sep 17 00:00:00 2001 From: IlyasMohetna <109673941+IlyasMohetna@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:43:44 +0100 Subject: [PATCH] Change tenants.id column type from string to uuid Updated the tenants migration to use $table->uuid('id')->primary() instead of $table->string('id')->primary() to properly support UUID-based tenant identification and ensure consistency with Stancl Tenancy expectations. --- assets/migrations/2019_09_15_000010_create_tenants_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/migrations/2019_09_15_000010_create_tenants_table.php b/assets/migrations/2019_09_15_000010_create_tenants_table.php index a923f2c8..a5a947b7 100644 --- a/assets/migrations/2019_09_15_000010_create_tenants_table.php +++ b/assets/migrations/2019_09_15_000010_create_tenants_table.php @@ -16,7 +16,7 @@ return new class extends Migration public function up(): void { Schema::create('tenants', function (Blueprint $table) { - $table->string('id')->primary(); + $table->uuid('id')->primary(); // your custom columns may go here