Skip to content

Commit

Permalink
Internal
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 591174245
Change-Id: I89853c73c38c5f177be4092a479730d3d29a005d
GitOrigin-RevId: 5199d3939a41be32dee85ce1676e1fff41c98173
  • Loading branch information
DeepMind Team authored and andrewluchen committed Dec 15, 2023
1 parent 7892880 commit 22ceb97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xmanager/xm_local/storage/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import abc
import functools
import os
import tempfile
from typing import Any, Dict, List, Optional, Type, TypeVar

from absl import flags
Expand Down Expand Up @@ -209,9 +210,10 @@ def __init__(
self.alembic_cfg = Config(alembic_ini_path)

self.alembic_cfg.set_main_option('sqlalchemy.url', str(self.engine.url))
self.alembic_cfg.set_main_option(
'script_location', os.path.join(storage_dir, 'alembic')
)

alembic_script_path = os.path.join(storage_dir, 'alembic')

self.alembic_cfg.set_main_option('script_location', alembic_script_path)

self.maybe_migrate_database_version()

Expand Down

0 comments on commit 22ceb97

Please sign in to comment.