Skip to content

Conversation

@larskemper
Copy link
Member

re-group error resolution migrations & delete unnecessary migrations/code

@larskemper larskemper requested a review from Copilot November 10, 2025 12:37
@larskemper larskemper self-assigned this Nov 10, 2025
Copy link

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 consolidates database migrations by removing three separate migration files and their tests, and instead incorporating their changes directly into the base migration files.

  • Removes main_mapping_id column and foreign key from the swag_migration_fix table
  • Adds entity_id index to both swag_migration_fix and swag_migration_logging tables
  • Replaces used_mapping field with entity_id field in the logging table schema

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Core/Migration/Migration1757598733AddMigrationFixesTable.php Removes main_mapping_id field and its foreign key constraint; adds entity_id index to the table creation
src/Core/Migration/Migration1754897550AddFieldsToMigrationLogs.php Adds entity_id field to OPTIONAL_FIELDS, removes used_mapping field, and adds index creation for entity_id
src/Core/Migration/Migration1762436233RemoveMainMappingIdFromMigrationFix.php Migration file deleted - functionality consolidated into base migration
src/Core/Migration/Migration1762177450AddEntityIdAndEntityNameToFixTable.php Migration file deleted - functionality consolidated into base migration
src/Core/Migration/Migration1761903189AdjustSwagMigrationLoggingTable.php Migration file deleted - functionality consolidated into base migration
tests/Core/Migration/Migration1762436233RemoveMainMappingIdFromMigrationFixTest.php Test file deleted along with migration consolidation
tests/Core/Migration/Migration1762177450AddEntityIdAndEntityNameToFixTableTest.php Test file deleted along with migration consolidation
tests/Core/Migration/Migration1761903189AdjustSwagMigrationLoggingTableTest.php Test file deleted along with migration consolidation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@larskemper larskemper marked this pull request as ready for review November 10, 2025 12:50
Copy link
Contributor

@MalteJanz MalteJanz left a comment

Choose a reason for hiding this comment

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

Nice one 👍

@larskemper larskemper merged commit 6c36b6d into feature/migration-logging-refactor Nov 10, 2025
14 checks passed
@larskemper larskemper deleted the refactor/regroup-migrations branch November 10, 2025 14:15
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.

4 participants