feat(portal/pool): adds rdr domain field to the pool table
This commit is contained in:
parent
96f81ecfb4
commit
574c348bc1
3 changed files with 39 additions and 1 deletions
32
migrations/versions/09b5f4bd75b8_adding_redirector_domain.py
Normal file
32
migrations/versions/09b5f4bd75b8_adding_redirector_domain.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
"""Adding redirector domain
|
||||
|
||||
Revision ID: 09b5f4bd75b8
|
||||
Revises: a08ce5e7246a
|
||||
Create Date: 2023-01-17 10:48:59.742946
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '09b5f4bd75b8'
|
||||
down_revision = 'a08ce5e7246a'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('pool', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('redirector_domain', sa.String(length=128), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('pool', schema=None) as batch_op:
|
||||
batch_op.drop_column('redirector_domain')
|
||||
|
||||
# ### end Alembic commands ###
|
Loading…
Add table
Add a link
Reference in a new issue