mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-08 22:22:24 -05:00
No need to alter the columns in services, they are already the right type
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user