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

Ef Migration gives error on npgsql. #352

Closed
alperencaliskan opened this issue Jul 27, 2018 · 1 comment
Closed

Ef Migration gives error on npgsql. #352

alperencaliskan opened this issue Jul 27, 2018 · 1 comment

Comments

@alperencaliskan
Copy link
Contributor

Upgrading from 5.0.0 to 5.1.1,

Ef migration fails because of raw query, postgresql is case insensitive for object names. Needs quotation marks.

migrationBuilder.Sql("UPDATE Piranha_MediaVersions SET FileExtension='.jpg' WHERE FileExtension IS NULL");

UPDATE "Piranha_MediaVersions" SET "FileExtension"='.jpg' WHERE "FileExtension" IS NULL

@tidyui
Copy link
Member

tidyui commented Aug 10, 2018

This has now been released and is available in Piranha 5.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants