Fixed migrate script

This commit is contained in:
Verox001 2024-01-16 11:04:41 +01:00
parent 8c2f324f7a
commit 3980cc8c3b

View File

@ -44,7 +44,7 @@ if __name__ == "__main__":
raise FileNotFoundError
conn = sqlite3.connect("db.sqlite")
for file in os.listdir(migrations_path):
for file in sorted(os.listdir(migrations_path)):
if not file.endswith('.sql'):
continue
with open(os.path.join(os.path.dirname(__file__), 'migrations', file)) as migration: