Skip to content

Commit

Permalink
Fix check for django version table
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Feb 3, 2022
1 parent 7e55a94 commit 9d8ab16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiida/backends/sqlalchemy/migrator.py
Expand Up @@ -111,7 +111,7 @@ def validate_storage(self) -> None:
"""
with self._connection_context() as connection:
if not inspect(connection).has_table(self.alembic_version_table):
if not inspect(connection).has_table(self.django_version_table):
if inspect(connection).has_table(self.django_version_table):
raise exceptions.IncompatibleDatabaseSchema(
TEMPLATE_LEGACY_DJANGO_SCHEMA.format(profile_name=self.profile.name)
)
Expand Down

0 comments on commit 9d8ab16

Please sign in to comment.