|
|
|
|
@ -52,33 +52,33 @@ def upgrade():
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('provider_models', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('provider_orders', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('providers', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('tenant_default_models', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('tenant_preferred_model_providers', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.VARCHAR(length=40),
|
|
|
|
|
type_=sa.String(length=255),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
@ -87,33 +87,33 @@ def downgrade():
|
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
|
with op.batch_alter_table('tenant_preferred_model_providers', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('tenant_default_models', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('providers', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('provider_orders', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('provider_models', schema=None) as batch_op:
|
|
|
|
|
batch_op.alter_column('provider_name',
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
existing_type=sa.String(length=255),
|
|
|
|
|
type_=sa.VARCHAR(length=40),
|
|
|
|
|
existing_nullable=False)
|
|
|
|
|
|
|
|
|
|
with op.batch_alter_table('provider_model_settings', schema=None) as batch_op:
|
|
|
|
|
batch_op.drop_index('provider_model_setting_tenant_provider_model_idx')
|
|
|
|
|
|