Skip to content

UpdateServerless migration fix 2 #12755

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
Jun 20, 2025
Merged

Conversation

prastoin
Copy link
Contributor

@prastoin prastoin commented Jun 20, 2025

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Migration refactoring to improve PostgreSQL compatibility by changing enum type existence check from information_schema.types to pg_type table querying in serverless function column removal.

  • Changed type existence check query in 1748942397538-removeUselessServerlessFunctionColumn.ts to use pg_type instead of information_schema.types for better PostgreSQL compliance
  • Affects how the migration handles the ServerlessFunctionSyncStatus enum type during column removal
  • Consider adding a test case to verify proper enum cleanup across different PostgreSQL versions
  • Query pattern should be consistent with the one used in 1702479005171-addSubscriptionStatusOnWorkspace.ts

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@prastoin prastoin enabled auto-merge (squash) June 20, 2025 09:07
Copy link
Contributor

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:4949

This environment will automatically shut down when the PR is closed or after 5 hours.

@prastoin prastoin merged commit fe5574f into main Jun 20, 2025
48 of 52 checks passed
@prastoin prastoin deleted the fix-migration-serverless-update-2 branch June 20, 2025 09:35
prastoin added a commit that referenced this pull request Jun 20, 2025
ijreilly pushed a commit that referenced this pull request Jun 20, 2025
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.

[0.54.4 -> 0.55.6] DatabaseMigrationService type "metadata.dataSource_type_enum" does not exist
2 participants