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 drivetime_bands table fields #3377

Merged
merged 6 commits into from
Oct 7, 2019

Conversation

nfasulo
Copy link
Contributor

@nfasulo nfasulo commented Oct 4, 2019

Description of change

Adding min and max values to the drive time bands instead of a single value. This will ensure that we are resilient to future changes to the size of the bands. This table is not yet in use.

@nfasulo nfasulo requested review from a team as code owners October 4, 2019 15:37
Copy link
Contributor

@johnpaulashenfelter johnpaulashenfelter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nfasulo Changing an existing migration that is merged into production (even if the table is unused) is not going to lead to the change you want if migration has already been run.

This needs to be an additional migration to add these fields (and delete the other one, if that's what needs done and there's no data to lose)

@nfasulo
Copy link
Contributor Author

nfasulo commented Oct 4, 2019

Thanks, @johnpaulashenfelter. Will correct.

@va-vfs-bot va-vfs-bot temporarily deployed to nf/update-drivetime-bands-migration/master October 4, 2019 17:03 Inactive
Copy link
Contributor

@annaswims annaswims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please ensure the migration has been run in production before merging code that references these columns. Migrations are not run automatically during deploys. (forgive me if you know this already, just making sure everyone knows)

@va-vfs-bot va-vfs-bot temporarily deployed to nf/update-drivetime-bands-migration/master October 7, 2019 15:20 Inactive
Copy link
Contributor

@edmkitty edmkitty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nfasulo nfasulo merged commit b75dba5 into master Oct 7, 2019
@nfasulo nfasulo deleted the nf/update-drivetime-bands-migration branch October 7, 2019 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants