Progress on solar implementation, switched to storing metadata in SQL database...
This commit is contained in:
40
migrations/versions/a846faa2b908_initial_migration.py
Normal file
40
migrations/versions/a846faa2b908_initial_migration.py
Normal file
@@ -0,0 +1,40 @@
|
||||
"""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 ###
|
||||
Reference in New Issue
Block a user