aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/900a50c566c4_add_description_to_peers.py
blob: de751bf7978afe979935aed9213a7f822a0e3bcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""add description to peers

Revision ID: 900a50c566c4
Revises: 49b3fa6a4173
Create Date: 2022-09-21 12:43:37.943280

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '900a50c566c4'
down_revision = '49b3fa6a4173'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('peer', sa.Column('description', sa.String(), nullable=False))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('peer', 'description')
    # ### end Alembic commands ###