Skip to content

Commit d9099e9

Browse files
authored
Fix migration numbering and add migration 010 for package format (#675)
<!-- Provide a brief summary of your changes --> ## Motivation and Context <!-- Why is this change needed? What problem does it solve? --> The following PR fixes an issue we introduced on September, 30th that caused some of the migrations to not apply. This PR fixes it. After merging we'll have to reset staging as this would not work there (this is expected). ## How Has This Been Tested? <!-- Have you tested this in a real application? Which scenarios were tested? --> ## Breaking Changes <!-- Will users need to update their code or configurations? --> ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ ] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [ ] My code follows the repository's style guidelines - [ ] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed ## Additional context <!-- Add any other context, implementation notes, or design decisions --> Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent 1142e5d commit d9099e9

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/cancel-pulumi-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ jobs:
7373
run: |
7474
echo "$PULUMI_PROD_PASSPHRASE" > passphrase.prod.txt
7575
pulumi login gs://mcp-registry-prod-pulumi-state
76-
PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi cancel --stack gcpProd --yes
76+
PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi cancel --stack gcpProd --yes

internal/database/migrations/007a_clean_invalid_data.sql renamed to internal/database/migrations/008_clean_invalid_data.sql

File renamed without changes.

internal/database/migrations/008_separate_official_metadata.sql renamed to internal/database/migrations/009_separate_official_metadata.sql

File renamed without changes.

internal/database/migrations/009_migrate_canonical_package_refs.sql renamed to internal/database/migrations/010_migrate_canonical_package_refs.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
-- - Removes package-type-specific forbidden fields (e.g., fileSha256 from non-MCPB packages)
66
-- - Ensures all packages have required transport field
77

8+
BEGIN;
9+
810
-- Helper function to convert OCI package to canonical reference format
911
CREATE OR REPLACE FUNCTION convert_oci_package_to_canonical(pkg jsonb)
1012
RETURNS jsonb
@@ -197,4 +199,6 @@ DROP FUNCTION IF EXISTS convert_oci_package_to_canonical(jsonb);
197199
DROP FUNCTION IF EXISTS convert_mcpb_package_to_canonical(jsonb);
198200
DROP FUNCTION IF EXISTS remove_forbidden_fields(jsonb);
199201
DROP FUNCTION IF EXISTS ensure_transport_field(jsonb);
200-
DROP FUNCTION IF EXISTS convert_packages_array(jsonb);
202+
DROP FUNCTION IF EXISTS convert_packages_array(jsonb);
203+
204+
COMMIT;

0 commit comments

Comments
 (0)