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

Recreate triggers after SQLite table rebuild #87

Open
berhir opened this issue Aug 4, 2023 · 0 comments
Open

Recreate triggers after SQLite table rebuild #87

berhir opened this issue Aug 4, 2023 · 0 comments

Comments

@berhir
Copy link

berhir commented Aug 4, 2023

SQLite has limited support for schema changes and in many cases a table rebuild is required. EF Core does the table rebuilds automatically behind the scenes and it's not obvious when they are happening. EF assumes the domain/EF model fully represents the database schema. Triggers are not part of the model, and they get removed without any warning.
See dotnet/EntityFramework.Docs#4429 for more information.

It would be great to automatically detect if a table rebuild is required and add the CREATE TRIGGER statement to the migration if necessary.

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