Skip to content

Add lint for migrations folder#8348

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/lint-migrations-folder
May 5, 2023
Merged

Add lint for migrations folder#8348
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/lint-migrations-folder

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

One of the items in our incident review of 2023-04-13 Unsafe Migration was to prevent us from using the default migration folder (as in #8175) since it will not be run by the migration script.

I've added fefc13c initially to make sure it fails.

changelog: Internal, Database, Add test to ensure we do not generate migrations in the default folder
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/lint-migrations-folder branch from fefc13c to 7398861 Compare May 5, 2023 17:50
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM, love this!

@mitchellhenke mitchellhenke marked this pull request as ready for review May 5, 2023 18:08
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/lint-migrations-folder branch from 41915e6 to 6aaa83b Compare May 5, 2023 18:16
@mitchellhenke mitchellhenke merged commit 8af4979 into main May 5, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/lint-migrations-folder branch May 5, 2023 18:34
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.

2 participants