-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Migration lock file check #106299
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
base: master
Are you sure you want to change the base?
Migration lock file check #106299
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,6 +92,8 @@ class IntervalSeconds(models.IntegerChoices): | |
| # How to sample traces for this monitor. Note that we always send a trace_id, so any errors will | ||
| # be associated, this just controls the span sampling. | ||
| trace_sampling = models.BooleanField(default=False, db_default=False) | ||
| # Test field to verify CI catches missing migrations | ||
| test_migration_check = models.CharField(max_length=100, null=True, default=None) | ||
|
|
||
| objects: ClassVar[BaseManager[Self]] = BaseManager( | ||
| cache_fields=["pk", "subscription_id"], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixGenerate a new migration file to reflect the changes in the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test field without migration should not be merged
High Severity
A test field
test_migration_checkhas been added to theUptimeSubscriptionmodel without a corresponding migration file. The comment explicitly states this is a "Test field to verify CI catches missing migrations." This is test/debugging code that should not be merged to production. If deployed, the model would reference a database column that doesn't exist, causing runtime errors when accessingUptimeSubscriptionrecords.