31 lines
841 B
Python
31 lines
841 B
Python
"""Added upload file codes column.
|
|
|
|
Revision ID: c7bb822adf9f
|
|
Revises: 0d9dd68fd94b
|
|
Create Date: 2021-12-20 09:00:57.208921
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'c7bb822adf9f'
|
|
down_revision = '0d9dd68fd94b'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('upload_solar', sa.Column('region', sa.String(), nullable=True))
|
|
op.add_column('upload_solar', sa.Column('upload_file_codes', sa.ARRAY(sa.String()), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('upload_solar', 'upload_file_codes')
|
|
op.drop_column('upload_solar', 'region')
|
|
# ### end Alembic commands ###
|