add database stamp for core.sr.ht

access-overhaul
gildarts 2 years ago committed by Drew DeVault
parent 9450ca6437
commit dfd9ab1c61
  1. 7
      todosrht-initdb

@ -10,6 +10,8 @@ import todosrht.alembic
import todosrht.types
import todosrht.webhooks
import srht.alembic
from alembic import command
from alembic.config import Config
from srht.config import cfg
@ -25,3 +27,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…
Cancel
Save