diff --git a/hive/db/db_state.py b/hive/db/db_state.py index 3c97d5031a6ca82ecb137d0b5362837e8adf9774..836d6c2f24d09eabb0fe15b71c2c0eb681ab343c 100644 --- a/hive/db/db_state.py +++ b/hive/db/db_state.py @@ -240,13 +240,12 @@ class DbState: update_active_starting_from_posts_on_block(last_imported_block, current_imported_block) - log.info("Recreating FKs") - from hive.db.schema import create_fk - create_fk(cls.db()) - time_end = perf_counter() log.info("[INIT] update_all_posts_active executed in %fs", time_end - time_start) + log.info("Recreating FKs") + from hive.db.schema import create_fk + create_fk(cls.db()) @staticmethod def status():