diff --git a/alembic/versions/b54929c22c86_add_portal_specific_config.py b/alembic/versions/b54929c22c86_add_portal_specific_config.py new file mode 100644 index 00000000..b5d1a420 --- /dev/null +++ b/alembic/versions/b54929c22c86_add_portal_specific_config.py @@ -0,0 +1,25 @@ +"""Add portal-specific config + +Revision ID: b54929c22c86 +Revises: d5f7b8b4b456 +Create Date: 2018-09-24 23:40:33.528710 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = "b54929c22c86" +down_revision = "d5f7b8b4b456" +branch_labels = None +depends_on = None + + +def upgrade(): + op.add_column("portal", sa.Column("config", sa.Text(), nullable=True)) + + +def downgrade(): + with op.batch_alter_table("portal") as batch_op: + batch_op.drop_column("config") diff --git a/example-config.yaml b/example-config.yaml index 209d57a3..71b91ee0 100644 --- a/example-config.yaml +++ b/example-config.yaml @@ -145,7 +145,7 @@ bridge: # e.g. if bridge_notices.default is false, notices from other users will not be bridged, but # notices from users listed here will be bridged. exceptions: - - @importantbot:example.com + - "@importantbot:example.com" # Whether to bridge Telegram bot messages as m.notices or m.texts. bot_messages_as_notices: true # Use inline images instead of m.image to make rich captions possible.