Skip to content

database: Simplify trigger_versions_set_updated_at trigger on the versions table #3993

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

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 8, 2021

The only mutable columns in this table are yanked and downloads, but the trigger should specifically not be used when the downloads column changes. That means we're only left with the yanked column and can be more specific in the trigger condition.

This unblocks #3992, but also generally simplifies the table trigger.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 8, 2021
@Turbo87 Turbo87 requested a review from pietroalbini October 8, 2021 11:46
…versions` table

The only mutable columns in this table are `yanked` and `downloads`, but the trigger should specifically not be used when the `downloads` column changes. That means we're only left with the `yanked` column and can be more specific in the trigger condition.
@locks
Copy link
Contributor

locks commented Oct 14, 2021

The change seems simple enough 👍

@bors r+

@bors
Copy link
Contributor

bors commented Oct 14, 2021

📌 Commit 9dcf3c7 has been approved by locks

@bors
Copy link
Contributor

bors commented Oct 14, 2021

⌛ Testing commit 9dcf3c7 with merge 9410c80...

@bors
Copy link
Contributor

bors commented Oct 14, 2021

☀️ Test successful - checks-actions
Approved by: locks
Pushing 9410c80 to master...

@bors bors merged commit 9410c80 into rust-lang:master Oct 14, 2021
@Turbo87 Turbo87 deleted the simplify-trigger branch October 14, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants