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

Update alter-licences-view migration script #1245

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Aug 8, 2024

Following on from this PR #1242 where the include_in_sroc_tpt_billing column was removed from the view. The intention was to then create migration scripts to remove the column from the table.

However, we have realised that if we do this, given the way the migration scripts run. When all the migrations relating to the removal of this column are pushed up to our servers and they run together. An error will be generated as the migrations will try to remove the column from the table before it is removed from the view.

We have therefore opted for what we do when removing legacy columns from our views. We just comment out the column in the view migration and leave the column in the table.

This PR will update the migration that was created previously.

Following on from this PR #1242 where the `include_in_sroc_tpt_billing` column was removed from the view. The intention was to then create migration scripts to remove the column from the table.

However, we have realised that if we do this, given the way the migration scripts run. When all the migrations relating to the removal of this column are pushed up to our servers and they run together. An error will be generated as the migrations will try to remove the column from the table before it is removed from the view.

We have therefore opted for what we do when removing legacy columns from our views. We just comment out the column in the view migration and leave the column in the table.

This PR will update the migration that was created previously.
@Jozzey Jozzey added the enhancement New feature or request label Aug 8, 2024
@Jozzey Jozzey self-assigned this Aug 8, 2024
@Jozzey Jozzey marked this pull request as ready for review August 8, 2024 10:25
@Jozzey Jozzey merged commit c85d91f into main Aug 8, 2024
6 checks passed
@Jozzey Jozzey deleted the alter-licences-view branch August 8, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants