<reponame>morrowc/irrd<filename>irrd/storage/alembic/versions/f4c837d8258c_add_rpsl_prefix.py
"""add_rpsl_prefix

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2021-03-01 15:38:26.513071

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column('rpsl_objects', sa.Column('prefix', postgresql.CIDR(), nullable=True))


def downgrade():
    op.drop_column('rpsl_objects', 'prefix')

"""add_rpsl_prefix

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2021-03-01 15:38:26.513071

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column('rpsl_objects', sa.Column('prefix', postgresql.CIDR(), nullable=True))


def downgrade():
    op.drop_column('rpsl_objects', 'prefix')
add_rpsl_prefix  Revision ID: <KEY> Revises: <PASSWORD> Create Date: 2021-03-01 15:38:26.513071 # revision identifiers, used by Alembic.