1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-03-21 23:44:03 +00:00

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.
This commit is contained in:
IlyasMohetna 2026-02-17 21:43:44 +01:00 committed by GitHub
parent 37b2a91aa9
commit c7809a2ad0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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