1
0
forked from Hay1tsme/artemis

database: add check for current_schema_version

This commit is contained in:
Hay1tsme 2023-03-12 22:37:44 -04:00
parent 346e898983
commit a791142f95

View File

@ -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())