mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
change order of db operations
This commit is contained in:
@@ -16,7 +16,6 @@ down_revision = '0395_remove_intl_letters_perm'
|
|||||||
def upgrade():
|
def upgrade():
|
||||||
op.execute('ALTER TABLE services RENAME COLUMN organisation_type to organization_type')
|
op.execute('ALTER TABLE services RENAME COLUMN organisation_type to organization_type')
|
||||||
op.execute('ALTER TABLE services_history RENAME COLUMN organisation_type to organization_type')
|
op.execute('ALTER TABLE services_history RENAME COLUMN organisation_type to organization_type')
|
||||||
op.execute('ALTER TABLE organization RENAME COLUMN organisation_type to organization_type')
|
|
||||||
op.execute('ALTER TABLE services RENAME COLUMN organisation_id to organization_id')
|
op.execute('ALTER TABLE services RENAME COLUMN organisation_id to organization_id')
|
||||||
op.execute('ALTER TABLE services_history RENAME COLUMN organisation_id to organization_id')
|
op.execute('ALTER TABLE services_history RENAME COLUMN organisation_id to organization_id')
|
||||||
op.execute('ALTER TABLE domain RENAME COLUMN organisation_id to organization_id')
|
op.execute('ALTER TABLE domain RENAME COLUMN organisation_id to organization_id')
|
||||||
@@ -24,6 +23,9 @@ def upgrade():
|
|||||||
op.execute('ALTER TABLE invited_organisation_users RENAME to invited_organization_users')
|
op.execute('ALTER TABLE invited_organisation_users RENAME to invited_organization_users')
|
||||||
op.execute('ALTER TABLE user_to_organization RENAME COLUMN organisation_id to organization_id')
|
op.execute('ALTER TABLE user_to_organization RENAME COLUMN organisation_id to organization_id')
|
||||||
op.execute('ALTER TABLE invited_organization_users RENAME COLUMN organisation_id to organization_id')
|
op.execute('ALTER TABLE invited_organization_users RENAME COLUMN organisation_id to organization_id')
|
||||||
|
op.execute('ALTER TABLE organisation RENAME COLUMN organisation_type to organization_type')
|
||||||
|
op.execute('ALTER TABLE organisation RENAME to organization')
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user