modify alembic
This commit is contained in:
parent
f01a646750
commit
be52a48598
|
@ -0,0 +1,15 @@
|
|||
APP:
|
||||
APP_SLUG: "this is the slug of your deployed app"
|
||||
PRIVATE_KEY_PATH:"the path to the pem file"
|
||||
PERSONAL_TOKEN: "XXXXXXX"
|
||||
MYSQL:
|
||||
HOST: "127.0.0.1"
|
||||
PORT: 3306
|
||||
USER: "your username"
|
||||
PASSWORD: "your password"
|
||||
DB: "pr-latency-bot"
|
||||
SERVICE:
|
||||
PORT: 4567
|
||||
REMIND_EVERY_HOURS: 24
|
||||
SCHEDULER:
|
||||
CYCLE_MINUTES: 60
|
|
@ -0,0 +1,42 @@
|
|||
# A generic, single database configuration.
|
||||
|
||||
[alembic]
|
||||
# path to migration scripts
|
||||
script_location = ./app/db/alembic
|
||||
|
||||
# sqlalchemy.url = driver://user:pass@localhost/dbname configured in the .env.yaml file
|
||||
|
||||
# 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
|
Loading…
Reference in New Issue