-
Notifications
You must be signed in to change notification settings - Fork 190
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
Missing 'EXECUTE IMMEDIATE' for idempotent migration script #417
Comments
I used the None of the scripts are creating triggers either. What DB server version are you using? Can you provide a complete test case that shows the problem? |
Can you share the complete test case, the DB version you are using, and the verbose trace when your scripts update the DB? Debugging is easier with a test case as EF Core auto-generates a lot of the code. |
Hi, Db version: I cant run the script because of syntax error: My code example: |
I generate the script with: https://learn.microsoft.com/en-us/ef/core/cli/powershell#script-migration |
I was able to reproduce the issue. I've filed bug 37181655 to have one of the dev team members review the problem. |
@tommei Can you provide the manually updated script that works without error that you expect ODP.NET EF Core to generate? |
sure,
|
"Microsoft.EntityFrameworkCore.Tools" Version="6.0.35"
"Oracle.EntityFrameworkCore" Version="6.21.160"
Most of the scripts are wrapped with EXECUTE IMMEDIATE but e.g. 'CREATE OR REPLACE TRIGGER' is not. How can I fix it in ef core 6?
The trigger is generated for ConcurrencyToken
Config:
The text was updated successfully, but these errors were encountered: