refactor: Change the path of file alembic.ini

Change the path of file alembic.ini to skyline_apiserver/db/alembic.

Change-Id: Ic932dd4ed7350217a0db8eb766b863101d54f9af
This commit is contained in:
zhu.boxiang 2021-09-30 14:54:04 +08:00
parent 5614c154ea
commit 54a496a57f
4 changed files with 5 additions and 4 deletions

View File

@ -59,17 +59,17 @@ clean:
.PHONY: db_revision
HEAD_REV ?= $(shell poetry run alembic heads | awk '{print $$1}')
HEAD_REV ?= $(shell poetry run alembic -c skyline_apiserver/db/alembic/alembic.ini heads | awk '{print $$1}')
NEW_REV ?= $(shell python3 -c 'import sys; print(f"{int(sys.argv[1])+1:03}")' $(HEAD_REV))
REV_MEG ?=
db_revision:
$(shell [ -z "$(REV_MEG)" ] && printf '$(red)Missing required message, use "make db_revision REV_MEG=<some message>"$(no_color)')
poetry run alembic revision --autogenerate --rev-id $(NEW_REV) -m '$(REV_MEG)'
poetry run alembic -c skyline_apiserver/db/alembic/alembic.ini revision --autogenerate --rev-id $(NEW_REV) -m '$(REV_MEG)'
.PHONY: db_sync
db_sync:
poetry run alembic upgrade head
poetry run alembic -c skyline_apiserver/db/alembic/alembic.ini upgrade head
# Find python files without "type annotations"

View File

@ -4,6 +4,7 @@ version = "0.1.0"
description = ""
license = "Apache-2.0"
authors = ["OpenStack <openstack-discuss@lists.openstack.org>"]
include = ["skyline_apiserver/db/alembic/alembic.ini"]
[tool.poetry.dependencies]
python = "^3.8"

@ -1 +1 @@
Subproject commit 1b9c23e5c286a263a673bfb0489053f296b42401
Subproject commit 7f273e41c152a3eb1fd95d77cc8ca8442f918783