Added listen_updates property to connections.

This commit is contained in:
2025-04-07 20:29:37 +03:00
parent 7e7c22d0bb
commit 51ebd6f204
2 changed files with 32 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
"""Added listen_updates to connections.
Revision ID: 888e96cc67bd
Revises: 1c62ff091f5c
Create Date: 2025-04-07 20:27:07.748395
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = '888e96cc67bd'
down_revision: Union[str, None] = '1c62ff091f5c'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('connections', sa.Column('listen_updates', sa.Boolean(), nullable=False))
# ### end Alembic commands ###
def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('connections', 'listen_updates')
# ### end Alembic commands ###