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

Tidy up the file names of legacy migrations #1077

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

Cruikshanks
Copy link
Member

This is just some simple housekeeping to keep things in order.

The legacy migrations are purely used when creating the test database. They support our unit tests because we have chosen not to stub out the DB layer.

We went through an exercise of grouping the migrations by schema so that we can more easily see what legacy tables we have migrations for. However, we've let that slide recently.

And, while we are fixing filenames, we're also updating them all to separate the timestamp from the given name with an underscore. This is what would happen if you created the migration the normal way.

@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jun 5, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 5, 2024
This is just a simple housekeeping to keep things in order.

The legacy migrations are purely used when creating the test database. They support our unit tests because we have chosen not to stub out the DB layer.

We went through an exercise of grouping the migrations by schema so that we can more easily see what legacy tables we have migrations for. However, we've let that slide recently.

And, whilst we are fixing filenames we're also updating them all to separate the timestamp from the given name with an underscore. This is what would happen if you created the migration the normal way.
@Cruikshanks Cruikshanks force-pushed the tidy-legacy-migrations branch from 3b9c846 to bd9c048 Compare June 5, 2024 21:57
@Cruikshanks Cruikshanks marked this pull request as ready for review June 5, 2024 22:11
@Cruikshanks Cruikshanks merged commit d4f799f into main Jun 5, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the tidy-legacy-migrations branch June 5, 2024 22:11
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