forked from Dniel97/artemis
database: add check for current_schema_version
This commit is contained in:
parent
346e898983
commit
a791142f95
@ -71,7 +71,7 @@ class Data:
|
||||
games = Utils.get_all_titles()
|
||||
for game_dir, game_mod in games.items():
|
||||
try:
|
||||
if hasattr(game_mod, "database"):
|
||||
if hasattr(game_mod, "database") and hasattr(game_mod, "current_schema_version"):
|
||||
game_mod.database(self.config)
|
||||
metadata.create_all(self.__engine.connect())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user