44 lines
1.6 KiB
Python
44 lines
1.6 KiB
Python
"""empty message
|
|
|
|
Revision ID: 1e8167de6df8
|
|
Revises: 8930711a75a4
|
|
Create Date: 2023-03-02 15:18:19.515864
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '1e8167de6df8'
|
|
down_revision = '8930711a75a4'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('process_instance_file_data',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('process_instance_id', sa.Integer(), nullable=False),
|
|
sa.Column('identifier', sa.String(length=255), nullable=False),
|
|
sa.Column('list_index', sa.Integer(), nullable=True),
|
|
sa.Column('mimetype', sa.String(length=255), nullable=False),
|
|
sa.Column('filename', sa.String(length=255), nullable=False),
|
|
sa.Column('contents', sa.LargeBinary(), nullable=False),
|
|
sa.Column('digest', sa.String(length=64), nullable=False),
|
|
sa.Column('updated_at_in_seconds', sa.Integer(), nullable=False),
|
|
sa.Column('created_at_in_seconds', sa.Integer(), nullable=False),
|
|
sa.ForeignKeyConstraint(['process_instance_id'], ['process_instance.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
op.create_index(op.f('ix_process_instance_file_data_digest'), 'process_instance_file_data', ['digest'], unique=False)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_index(op.f('ix_process_instance_file_data_digest'), table_name='process_instance_file_data')
|
|
op.drop_table('process_instance_file_data')
|
|
# ### end Alembic commands ###
|