mirror of
https://git.sr.ht/~sircmpwn/man.sr.ht
synced 2024-09-09 11:33:01 +02:00
add database stamp for core.sr.ht
This commit is contained in:
parent
2125de418f
commit
8c9312c3cd
1 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,8 @@ Idempotent. If the tables already exist, they will not be re-created.
|
|||
import mansrht.alembic
|
||||
import mansrht.types
|
||||
|
||||
import srht.alembic
|
||||
|
||||
from alembic import command
|
||||
from alembic.config import Config
|
||||
from srht.config import cfg
|
||||
|
@ -24,3 +26,8 @@ config = Config()
|
|||
config.set_main_option("sqlalchemy.url", connection_string)
|
||||
config.set_main_option("script_location", alembic_path)
|
||||
command.stamp(config, "head")
|
||||
|
||||
alembic_path = list(srht.alembic.__path__)[0]
|
||||
|
||||
config.set_main_option("script_location", alembic_path)
|
||||
command.stamp(config, "head")
|
||||
|
|
Loading…
Reference in a new issue