Skip to content

Commit 7aa8456

Browse files
committed
✨ Ignore raw sql migration stub files from discovery
1 parent e296da4 commit 7aa8456

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tempest/Database/src/MigrationDiscovery.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ public function discoverPath(DiscoveryLocation $location, string $path): void
3939
return;
4040
}
4141

42+
if (str_ends_with($path, '.stub.sql')) {
43+
return;
44+
}
45+
4246
$fileName = pathinfo($path, PATHINFO_FILENAME);
4347

4448
$contents = explode(';', file_get_contents($path));

0 commit comments

Comments
 (0)