#
# adapts the alembic migrations ini
# to changes in the pow db config
#
from pow_comments.dblib import conn_str
import configparser

#config= configparser.ConfigParser.RawConfigParser()
config= configparser.ConfigParser()
config.read(r'alembic.ini')
config.set('alembic','sqlalchemy.url',conn_str)
with open(r'alembic.ini', 'w') as configfile:
    config.write(configfile)
print(70*"-")
print("updated migration environment: " + conn_str)
print(70*"-")
#
# adapts the alembic migrations ini
# to changes in the pow db config
#
from pow_comments.dblib import conn_str
import configparser

#config= configparser.ConfigParser.RawConfigParser()
config= configparser.ConfigParser()
config.read(r'alembic.ini')
config.set('alembic','sqlalchemy.url',conn_str)
with open(r'alembic.ini', 'w') as configfile:
    config.write(configfile)
print(70*"-")
print("updated migration environment: " + conn_str)
print(70*"-")
# # adapts the alembic migrations ini # to changes in the pow db config # #config= configparser.ConfigParser.RawConfigParser()