diff --git a/.gitignore b/.gitignore index 040860470b..e4344f5d11 100644 --- a/.gitignore +++ b/.gitignore @@ -112,6 +112,7 @@ ENV/ /.pants.rc /docker-compose.halfstack.current.yml /alembic.ini +/alembic-accountmgr.ini /dev.etcd.volumes.json /dev.etcd.installed.json /env-*.sh diff --git a/am-alembic.ini b/am-alembic.ini deleted file mode 100644 index a6c7df8f0e..0000000000 --- a/am-alembic.ini +++ /dev/null @@ -1,74 +0,0 @@ -# A generic, single database configuration. - -[alembic] -# path to migration scripts -script_location = ai.backend.account_manager.models:alembic - -# template used to generate migration files -# file_template = %%(rev)s_%%(slug)s - -# timezone to use when rendering the date -# within the migration file as well as the filename. -# string value is passed to dateutil.tz.gettz() -# leave blank for localtime -# timezone = - -# max length of characters to apply to the -# "slug" field -#truncate_slug_length = 40 - -# set to 'true' to run the environment during -# the 'revision' command, regardless of autogenerate -# revision_environment = false - -# set to 'true' to allow .pyc and .pyo files without -# a source .py file to be detected as revisions in the -# versions/ directory -# sourceless = false - -# version location specification; this defaults -# to alembic/versions. When using multiple version -# directories, initial revisions must be specified with --version-path -# version_locations = %(here)s/bar %(here)s/bat alembic/versions - -# the output encoding used when revision files -# are written from script.py.mako -# output_encoding = utf-8 - -sqlalchemy.url = postgresql+asyncpg://postgres:develove@localhost:8101/backendaccount - - -# Logging configuration -[loggers] -keys = root,sqlalchemy,alembic - -[handlers] -keys = console - -[formatters] -keys = generic - -[logger_root] -level = WARN -handlers = console -qualname = - -[logger_sqlalchemy] -level = WARN -handlers = -qualname = sqlalchemy.engine - -[logger_alembic] -level = INFO -handlers = -qualname = alembic - -[handler_console] -class = StreamHandler -args = (sys.stderr,) -level = NOTSET -formatter = generic - -[formatter_generic] -format = %(levelname)-5.5s [%(name)s] %(message)s -datefmt = %H:%M:%S diff --git a/scripts/install-dev.sh b/scripts/install-dev.sh index b6c968045a..b7a71c57e6 100755 --- a/scripts/install-dev.sh +++ b/scripts/install-dev.sh @@ -905,8 +905,8 @@ configure_backendai() { sed_inplace "s/port = 8100/port = ${POSTGRES_PORT}/" ./account-manager.toml sed_inplace "s/port = 8081/port = ${ACCOUNT_MANAGER_PORT}/" ./account-manager.toml sed_inplace "s@\(# \)\{0,1\}ipc-base-path = .*@ipc-base-path = "'"'"${IPC_BASE_PATH}"'"'"@" ./account-manager.toml - cp configs/account-manager/halfstack.alembic.ini ./am-alembic.ini - sed_inplace "s/localhost:8100/localhost:${POSTGRES_PORT}/" ./am-alembic.ini + cp configs/account-manager/halfstack.alembic.ini ./alembic-accountmgr.ini + sed_inplace "s/localhost:8100/localhost:${POSTGRES_PORT}/" ./alembic-accountmgr.ini # configure halfstack ports cp configs/agent/halfstack.toml ./agent.toml