We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b784d7d commit 2c80decCopy full SHA for 2c80dec
1 file changed
src/Migrations/Version20251028092901MySqlInit.php
@@ -30,14 +30,8 @@ public function up(Schema $schema): void
30
);
31
32
$schemaManager = $this->connection->createSchemaManager();
33
- $tables = $schemaManager->listTableNames();
34
- $hasUserStats = array_filter(
35
- $tables,
36
- static fn (string $table): bool =>
37
- str_ends_with($table, 'userstats')
38
- );
39
$this->skipIf(
40
- !empty($hasUserStats),
+ $schemaManager->tablesExist(['doctrine_migration_versions']),
41
'phpList schema already exists.'
42
43
0 commit comments