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

Dependencies issue with DROP command for views and materialized views #88

Open
kraftaa opened this issue May 3, 2024 · 0 comments
Open

Comments

@kraftaa
Copy link

kraftaa commented May 3, 2024

Current Behavior:

If I run cargo run build on my views/materialized views models I'm getting errors about dependent views . I either need to delete all view with CASCADE or don't use views in other views.

Expected Behavior:

I expect it to be updated without deleting all views. I suppose it could be done via

  • no DROP command for views and materialized views, only for the tables.
  • views: CREATE or REPLACE VIEW command
  • materialized views: REFRESH MATERIALIZED VIEW if exists, otherwise CREATE MATERIALIZED VIEW.

I've submitted a PR with my solution.

thank you

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