Skip to content
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

DbContext.Database.Migrate() change guid charset and Collation #1918

Open
renyanwei opened this issue May 7, 2024 · 0 comments
Open

DbContext.Database.Migrate() change guid charset and Collation #1918

renyanwei opened this issue May 7, 2024 · 0 comments

Comments

@renyanwei
Copy link

I am using Pomelo Efcore I encountered a situation while using MySQL and didn't know how to handle it. Our application needs to be deployed to different servers. Some servers use MySQL 8.0 for their databases, while others use Oceanbase 4.3(100% compatible with the MySQL protocol) for their databases. However, Oceanbase does not support the ascii character set, so you want to execute update database or use Dbcontext in Efcore Database When Migrate(), different character sets and sorting rules can be set for the Guid type based on the current database type. How should I handle this?
Pomelo has a method called UseGuidCollation, but this is determined during add migration, and the effect I want to achieve is determined during Update database.

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

No branches or pull requests

1 participant