Skip to content

Commit 2dc0fc3

Browse files
committed
only load SQL files
1 parent 72356c8 commit 2dc0fc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pum/upgrader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ def changelog_files(self, changelog: str) -> list[Path]:
187187
This is not recursive, it only returns the files in the given changelog directory.
188188
"""
189189
files = [
190-
changelog.dir / f for f in os.listdir(changelog.dir) if (changelog.dir / f).is_file()
190+
changelog.dir / f
191+
for f in os.listdir(changelog.dir)
192+
if (changelog.dir / f).is_file() and f.endswith(".sql")
191193
]
192194
files.sort()
193195
return files

0 commit comments

Comments
 (0)