-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EAS-2491 Remove deprecated Organisation fields (#171)
* initial cull of deprecated params to classes & methods * fix tests and column constraints * fix migration file conflict * fix template test * fix tests to work with reduced permission set * fix tests to work with reduced permission set * fix permissions on tests * fix tests * fix config for migrations to work * remove commented-out code * remove commented-out code * remove references to unused var * add migration file to remove deprecated org fields * remove org columns
- Loading branch information
1 parent
0dc0a20
commit 8460fa0
Showing
5 changed files
with
32 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
Revision ID: 0405_drop_notify_org_fields | ||
Revises: 0404_drop_constraints | ||
Create Date: 2024-12-02 10:00:00 | ||
""" | ||
|
||
from alembic import op | ||
|
||
revision = "0405_drop_notify_org_fields" | ||
down_revision = "0404_drop_constraints" | ||
|
||
|
||
def upgrade(): | ||
op.drop_column("organisation", "agreement_signed") | ||
op.drop_column("organisation", "agreement_signed_at") | ||
op.drop_column("organisation", "agreement_signed_by_id") | ||
op.drop_column("organisation", "agreement_signed_version") | ||
op.drop_column("organisation", "request_to_go_live_notes") | ||
op.drop_column("organisation", "agreement_signed_on_behalf_of_email_address") | ||
op.drop_column("organisation", "agreement_signed_on_behalf_of_name") | ||
op.drop_column("organisation", "billing_contact_email_addresses") | ||
op.drop_column("organisation", "billing_contact_names") | ||
op.drop_column("organisation", "billing_reference") | ||
op.drop_column("organisation", "purchase_order_number") | ||
|
||
op.drop_column("organisation_types", "annual_free_sms_fragment_limit") | ||
|
||
|
||
def downgrade(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters