diff --git a/src/Migrations/Version20240121100724.php b/src/Migrations/Version20240121100724.php index 235a1b53..b4018358 100644 --- a/src/Migrations/Version20240121100724.php +++ b/src/Migrations/Version20240121100724.php @@ -91,6 +91,10 @@ public function up(Schema $schema): void } foreach (Tenant::TENANT_TABLES as $tableName) { + if (!$schema->hasTable($tableName)) { + continue; + } + $table = $schema->getTable($tableName); if (!$table->hasColumn('tenant_id')) { $table->addColumn('tenant_id', 'string', ['length' => 64, 'notnull' => false, 'default' => null]);