Skip to content

Correct value type in hard-coded migrations test#33404

Merged
ajcvickers merged 1 commit intomainfrom
GrapefruitsInTheOrangeBowl
Mar 26, 2024
Merged

Correct value type in hard-coded migrations test#33404
ajcvickers merged 1 commit intomainfrom
GrapefruitsInTheOrangeBowl

Conversation

@ajcvickers
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

/cc @lauxjpn

@ajcvickers ajcvickers requested a review from a team March 26, 2024 09:24
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
Copy Markdown
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