From d210b77f61ebe1284cd1f9e0f67d631c1d6b8aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 27 Jan 2024 23:58:38 +0100 Subject: [PATCH] drop and recreate id column separately in autoincrement_ids_are_supported --- tests/TenantModelTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/TenantModelTest.php b/tests/TenantModelTest.php index 46dc6a00..3e28e144 100644 --- a/tests/TenantModelTest.php +++ b/tests/TenantModelTest.php @@ -68,7 +68,11 @@ class TenantModelTest extends TestCase { Schema::drop('domains'); Schema::table('tenants', function (Blueprint $table) { - $table->bigIncrements('id')->change(); + $table->dropColumn('id'); + }); + + Schema::table('tenants', function (Blueprint $table) { + $table->bigIncrements('id'); }); unset(app()[UniqueIdentifierGenerator::class]);