Skip to content

Conversation

@akfakmot
Copy link
Collaborator

Motivation

DB patching feature implemented when solving #456 . Since then it was decided to be solved in other way, but we keep this feature for future use, since it's general purpose.

akfakmot and others added 4 commits September 19, 2025 14:53
Add: Database patching mechanism
Add: Patch of content item related GUIDs
Add: Database patching mechanism
Add: Patch of content item related GUIDs
Remove: Remove patch mechanism from user's sight
Add: Report unknown commands
@akfakmot akfakmot requested a review from a team as a code owner September 19, 2025 13:20
Copy link
Contributor

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 a DB patching mechanism to handle database fixes without running full migrations. The feature allows applying targeted patches to fix data issues caused by bugs in previous Migration Tool versions.

Key changes:

  • Introduces a new patch command alongside the existing migrate command
  • Implements a database patching system with tracking of applied patches
  • Updates command parsing to handle both master commands and subcommands

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
Migration.Tool.Common/Services/MasterCommand.cs Defines enum for master commands (Migrate, Patch)
Migration.Tool.Common/Services/ICommandParser.cs Updates interface to return master command and subcommands separately
Migration.Tool.Common/Services/DatabasePatcher/IDatabasePatch.cs Interface for database patch implementations
Migration.Tool.Common/Services/DatabasePatcher/DatabasePatcher.cs Core patching logic with tracking table management
Migration.Tool.Common/Services/CommandParser.cs Refactored to parse master commands first, then subcommands
Migration.Tool.CLI/Program.cs Integrates database patcher into main program flow

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Tomáš Kafka added 3 commits September 19, 2025 15:45
Chore: Cleanup and document Database patcher
Modify: Remove reference to dbo schema in database patcher
Doc: Add documentation
@akfakmot akfakmot merged commit 270cebc into develop Sep 22, 2025
2 checks passed
@akfakmot akfakmot deleted the feat/db-patching branch September 22, 2025 06:31
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.

3 participants