41 lines
1.2 KiB
Python
41 lines
1.2 KiB
Python
|
"""Initial migration.
|
||
|
|
||
|
Revision ID: a846faa2b908
|
||
|
Revises:
|
||
|
Create Date: 2021-03-24 08:53:24.792682
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'a846faa2b908'
|
||
|
down_revision = None
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('upload_unauthenticated',
|
||
|
sa.Column('id', sa.Integer(), nullable=False),
|
||
|
sa.Column('upload_hash', sa.String(), nullable=True),
|
||
|
sa.Column('timestamp', sa.DateTime(), nullable=True),
|
||
|
sa.Column('form_name', sa.String(), nullable=True),
|
||
|
sa.Column('form_org', sa.String(), nullable=True),
|
||
|
sa.Column('form_address', sa.String(), nullable=True),
|
||
|
sa.Column('form_zipcode', sa.String(), nullable=True),
|
||
|
sa.Column('form_email', sa.String(), nullable=True),
|
||
|
sa.Column('file_contract', sa.String(), nullable=True),
|
||
|
sa.Column('upload_file_hashes', sa.ARRAY(sa.String()), nullable=True),
|
||
|
sa.PrimaryKeyConstraint('id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('upload_unauthenticated')
|
||
|
# ### end Alembic commands ###
|