Coverage for mindsdb / migrations / versions / 2023-02-17_ee63d868fa84_predictor_integration_null.py: 69%
13 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-21 00:36 +0000
1"""predictor_integration_null
3Revision ID: ee63d868fa84
4Revises: b6d0a47294ac
5Create Date: 2023-02-17 13:48:49.464644
7"""
8from alembic import op
9import sqlalchemy as sa
10import mindsdb.interfaces.storage.db # noqa
13# revision identifiers, used by Alembic.
14revision = 'ee63d868fa84'
15down_revision = 'b6d0a47294ac'
16branch_labels = None
17depends_on = None
20def upgrade():
21 # ### commands auto generated by Alembic - please adjust! ###
23 with op.batch_alter_table('predictor', schema=None) as batch_op:
24 batch_op.alter_column(
25 'integration_id',
26 existing_type=sa.INTEGER(),
27 nullable=True
28 )
30 # ### end Alembic commands ###
33def downgrade():
34 # ### commands auto generated by Alembic - please adjust! ###
35 with op.batch_alter_table('predictor', schema=None) as batch_op:
36 batch_op.alter_column(
37 'integration_id',
38 existing_type=sa.INTEGER(),
39 nullable=False
40 )
42 # ### end Alembic commands ###