2023-04-27 19:19:02 +00:00
|
|
|
"""empty message
|
|
|
|
|
|
|
|
Revision ID: 68adb1d504e1
|
|
|
|
Revises: 0c7428378d6e
|
|
|
|
Create Date: 2023-04-27 12:24:01.771698
|
|
|
|
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
2023-05-27 00:01:08 +00:00
|
|
|
from alembic import op
|
2023-04-27 19:19:02 +00:00
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = '68adb1d504e1'
|
2023-05-01 16:51:58 +00:00
|
|
|
down_revision = '664bb2f00694'
|
2023-04-27 19:19:02 +00:00
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
with op.batch_alter_table('process_instance_report', schema=None) as batch_op:
|
2023-09-08 15:07:43 +00:00
|
|
|
batch_op.add_column(sa.Column('json_data_hash', sa.String(length=255)))
|
|
|
|
batch_op.alter_column('json_data_hash', existing_type=sa.String(length=255), nullable=False)
|
2023-04-27 19:19:02 +00:00
|
|
|
batch_op.create_index(batch_op.f('ix_process_instance_report_json_data_hash'), ['json_data_hash'], unique=False)
|
|
|
|
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
with op.batch_alter_table('process_instance_report', schema=None) as batch_op:
|
|
|
|
batch_op.drop_index(batch_op.f('ix_process_instance_report_json_data_hash'))
|
|
|
|
batch_op.drop_column('json_data_hash')
|
|
|
|
|
|
|
|
# ### end Alembic commands ###
|