Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defaults to unused column crm.document_header #1006

Merged
merged 2 commits into from Jan 8, 2024

Commits on Jan 7, 2024

  1. Add defaults to unused column crm.document_header

    https://eaflood.atlassian.net/browse/WATER-4292
    
    As part of making the migrations work in `water-abstraction-system` we have been creating DB Views of the legacy crm data that better represent the data as we use it in our new service. Part of this exercise is pruning out the unused columns that exist in the legacy tables that are not utilised.
    
    However, we have found that for some of the columns in the legacy data, whilst pointless, still need to be populated as they are set to `Not Nullable` in the legacy database tables. Therefore, we will set a default value for these columns in the legacy DB so that they are always populated even when they do not exist in our new Views.
    
    The table columns that will be affected by this PR are:
    
    - `crm.document_header.system_id` - this is always "permit-repo" so it will default to "permit-repo"
    Cruikshanks committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    fee5f56 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Add migration

    Cruikshanks committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    188a680 View commit details
    Browse the repository at this point in the history