mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
Drop making crown not nullable on downgrade as it would fail anyway
This commit is contained in:
@@ -43,5 +43,3 @@ def upgrade():
|
|||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
op.execute('DROP TABLE organisation_types')
|
op.execute('DROP TABLE organisation_types')
|
||||||
op.alter_column('services', 'crown', nullable=False)
|
|
||||||
op.alter_column('services_history', 'crown', nullable=False)
|
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ def test_post_create_organisation_existing_name_raises_400(admin_request, sample
|
|||||||
'name': 'Service name',
|
'name': 'Service name',
|
||||||
'crown': False,
|
'crown': False,
|
||||||
'organisation_type': 'foo',
|
'organisation_type': 'foo',
|
||||||
}, 'organisation_type foo is not one of [central, local, nhs_central, nhs_local, emergency_service, school_or_college, other]'), # noqa
|
}, 'organisation_type foo is not one of [central, local, nhs_central, nhs, nhs_local, emergency_service, school_or_college, other]'), # noqa
|
||||||
))
|
))
|
||||||
def test_post_create_organisation_with_missing_data_gives_validation_error(
|
def test_post_create_organisation_with_missing_data_gives_validation_error(
|
||||||
admin_request,
|
admin_request,
|
||||||
|
|||||||
Reference in New Issue
Block a user