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

Fix model migrations since last release #1108

Merged
merged 10 commits into from
Jun 16, 2024
Merged

Fix model migrations since last release #1108

merged 10 commits into from
Jun 16, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Jun 15, 2024

Warning! This will break local environments unless you manually remove existing tables and views in the public schema.

We've been doing work on both return requirements and two-part tariff which has resulted in a number of new migrations being added and existing ones being edited.

However, because these 2 features are large, complex, and constantly in flux, we've often needed to make changes. Or, we simply got it wrong, and the original migrations were incorrect.

We've just spotted that a recent attempt to fix a migration actually ended up reverting an earlier fix! We've always had a policy that migrations are not 'fixed' until they are shipped to production. So, we're taking a pause and tidying up the currently 'unshipped' migrations.

This means, for example, that if we created a migration, then altered it a number of times, those alterations will be added to the original create then deleted.

We'll also take the opportunity to get the file names back on track with what they should be plus fix and 'miss-typed' relationships.

> Warning! This will break local environments unless you manually remove existing tables and views in the `public` schema.

We've been doing work for both return requirements and two-part tariff that has resulted in a number new migrations being added and existing ones being edited.

However, because these 2 features are large, complex and constantly in flux we've often needed to make changes. Or, we simply got it wrong and the original migrations was incorrect.

We've just spotted that a recent attempt to fix a migration actually ended up reverting an earlier fix! We've always had a policy that migrations are not 'fixed' until they are shipped to production. So, we're taking a pause and tidying up the currently 'unshipped' migrations.

This means for example, where we have created a migration, then altered it a number of times that those alterations will be added to the original `create` then deleted.

We'll also take the opportunity to get the files names back on track with what they should be.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jun 15, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 15, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review June 16, 2024 09:05
@Cruikshanks Cruikshanks merged commit 4afb07f into main Jun 16, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the more-model-fixes branch June 16, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant