forked from Hay1tsme/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()
|
games = Utils.get_all_titles()
|
||||||
for game_dir, game_mod in games.items():
|
for game_dir, game_mod in games.items():
|
||||||
try:
|
try:
|
||||||
if hasattr(game_mod, "database"):
|
if hasattr(game_mod, "database") and hasattr(game_mod, "current_schema_version"):
|
||||||
game_mod.database(self.config)
|
game_mod.database(self.config)
|
||||||
metadata.create_all(self.__engine.connect())
|
metadata.create_all(self.__engine.connect())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user