"""run_edatask Revision ID: 27a711c4b3df Revises: 997e26f4138a Create Date: 2023-06-07 14:49:30.382023 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '27a711c4b3df' down_revision = '997e26f4138a' branch_labels = None depends_on = None def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.create_table('eda_task', sa.Column('name', sa.String(length=128), nullable=False), sa.Column('url_path', sa.String(length=128), nullable=False), sa.Column('method', sa.String(length=8), nullable=False), sa.Column('description', sa.String(length=256), nullable=False), sa.Column('timeout', sa.Integer(), nullable=False), sa.Column('prompt_template', sa.Text(), nullable=False), sa.Column('exprs', sa.String(length=1024), nullable=False), sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('deleted_at', sa.DateTime(), nullable=True), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('url_path') ) op.create_table('eda_task_job', sa.Column('eda_task_id', sa.Integer(), nullable=False), sa.Column('job_id', sa.String(length=36), nullable=False), sa.Column('status', sa.String(length=8), nullable=False), sa.Column('prompt', sa.Text(), nullable=False), sa.Column('output', sa.Text(), nullable=False), sa.Column('ended_at', sa.DateTime(), nullable=True), sa.Column('variables', sa.String(length=1024), nullable=False), sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('deleted_at', sa.DateTime(), nullable=True), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_eda_task_job_job_id'), 'eda_task_job', ['job_id'], unique=False) # ### end Alembic commands ### def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.drop_index(op.f('ix_eda_task_job_job_id'), table_name='eda_task_job') op.drop_table('eda_task_job') op.drop_table('eda_task') # ### end Alembic commands ###