Skip to content

Commit 1d81e8b

Browse files
Merge pull request #835 from bezborodow/issues/masonite/743
Migrations should ignore dotfiles.
2 parents 4445730 + 91489eb commit 1d81e8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/masoniteorm/migrations/Migration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get_unran_migrations(self):
6060
all_migrations = [
6161
f.replace(".py", "")
6262
for f in listdir(directory_path)
63-
if isfile(join(directory_path, f)) and f != "__init__.py"
63+
if isfile(join(directory_path, f)) and f != "__init__.py" and not f.startswith('.')
6464
]
6565
all_migrations.sort()
6666
unran_migrations = []
@@ -107,7 +107,7 @@ def get_ran_migrations(self):
107107
all_migrations = [
108108
f.replace(".py", "")
109109
for f in listdir(directory_path)
110-
if isfile(join(directory_path, f)) and f != "__init__.py"
110+
if isfile(join(directory_path, f)) and f != "__init__.py" and not f.startswith('.')
111111
]
112112
all_migrations.sort()
113113
ran = []

0 commit comments

Comments
 (0)