Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: sync mssql triggers #16059

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

Conversation

h3n4l
Copy link
Member

@h3n4l h3n4l commented May 7, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings May 7, 2025 07:20
@h3n4l h3n4l requested a review from a team as a code owner May 7, 2025 07:20
@cla-bot cla-bot bot added the cla-signed label May 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds trigger synchronization to the MSSQL schema sync functionality.

  • Added a new function (getTriggers) to retrieve trigger metadata from the database.
  • Updated the SyncDBSchema method to integrate trigger data with table and view metadata.
  • Removed a redundant comment from the getProcedures function.
Comments suppressed due to low confidence (1)

backend/plugin/db/mssql/sync.go:841

  • [nitpick] The variable 'm' used for selecting the triggers map based on parent type could be renamed to something more descriptive (e.g., 'targetTriggers') to improve readability.
m := tableTriggers

@h3n4l h3n4l merged commit 4a8f30d into bytebase:main May 7, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants