Skip to content

Commit

Permalink
Fix sql 00002 migration is running indefinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
mansuf committed Sep 9, 2024
1 parent 32203fa commit 61ec2d7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ def check_if_migrate_is_possible(self) -> bool:
cursor = self.db.cursor()
missing_tables = self.get_missing_tables()
missing_columns = self.get_missing_columns()
missing_values = self.get_missing_values()
missing_version = self._is_version_missing(cursor)

cursor.close()

return any([missing_columns, missing_tables, missing_values, missing_version])
return any([missing_columns, missing_tables, missing_version])

def migrate(self):
cursor = self.db.cursor()
Expand Down

0 comments on commit 61ec2d7

Please sign in to comment.