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

Correct value type in hard-coded migrations test #33404

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

ajcvickers
Copy link
Member

Column is created as int, but then used as string. Causing issues for Pomelo MySQL provider.

Fixes #33331

Column is created as int, but then used as string. Causing issues for Pomelo MySQL provider.

Fixes #33331
@ajcvickers
Copy link
Member Author

/cc @lauxjpn

@ajcvickers ajcvickers requested a review from a team March 26, 2024 09:24
@ajcvickers ajcvickers merged commit 92e6124 into main Mar 26, 2024
7 checks passed
@ajcvickers ajcvickers deleted the GrapefruitsInTheOrangeBowl branch March 26, 2024 10:21
@@ -486,7 +486,7 @@ Empty Lines

protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql($"INSERT INTO Table1 (Id, Bar, Description) VALUES (-1, ' ', '{TestValue}')");
migrationBuilder.Sql($"INSERT INTO Table1 (Id, Bar, Description) VALUES (-1, 3, '{TestValue}')");
Copy link
Member

@roji roji May 11, 2024

Choose a reason for hiding this comment

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

Fails on PostgreSQL because Table1 is unquoted :(

/cc @ajcvickers

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.

00000000000005_Migration5 in MigrationsInfrastructureTestBase assumes that int Bar is string Bar
2 participants