No need to alter the columns in services, they are already the right type

This commit is contained in:
Pea Tyczynska
2021-02-08 10:45:28 +00:00
parent aa7bc3d9b4
commit bbc8cffb5b

View File

@@ -20,43 +20,11 @@ def upgrade():
op.add_column('organisation', sa.Column('billing_reference', sa.String(length=255), nullable=True))
op.add_column('organisation', sa.Column('notes', sa.Text(), nullable=True))
op.add_column('organisation', sa.Column('purchase_order_number', sa.String(length=255), nullable=True))
op.alter_column('services', 'billing_contact_email_addresses',
existing_type=sa.VARCHAR(length=255),
type_=sa.Text(),
existing_nullable=True)
op.alter_column('services', 'billing_contact_names',
existing_type=sa.VARCHAR(length=255),
type_=sa.Text(),
existing_nullable=True)
op.alter_column('services_history', 'billing_contact_email_addresses',
existing_type=sa.VARCHAR(length=255),
type_=sa.Text(),
existing_nullable=True)
op.alter_column('services_history', 'billing_contact_names',
existing_type=sa.VARCHAR(length=255),
type_=sa.Text(),
existing_nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('services_history', 'billing_contact_names',
existing_type=sa.Text(),
type_=sa.VARCHAR(length=255),
existing_nullable=True)
op.alter_column('services_history', 'billing_contact_email_addresses',
existing_type=sa.Text(),
type_=sa.VARCHAR(length=255),
existing_nullable=True)
op.alter_column('services', 'billing_contact_names',
existing_type=sa.Text(),
type_=sa.VARCHAR(length=255),
existing_nullable=True)
op.alter_column('services', 'billing_contact_email_addresses',
existing_type=sa.Text(),
type_=sa.VARCHAR(length=255),
existing_nullable=True)
op.drop_column('organisation', 'purchase_order_number')
op.drop_column('organisation', 'notes')
op.drop_column('organisation', 'billing_reference')