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

How can i drop sql view? with helpers #14

Open
Seriouskosk opened this issue Oct 28, 2022 · 1 comment
Open

How can i drop sql view? with helpers #14

Seriouskosk opened this issue Oct 28, 2022 · 1 comment

Comments

@Seriouskosk
Copy link

Seriouskosk commented Oct 28, 2022

Created view, all fine. Use it, and decided move my view in diff app.

so do makemigrations
get :

migrations.DeleteModel(
            name='MySQLViewClass',
        ),

on migrate get
HINT: Use DROP VIEW to remove a view.

i use
migrations.RunSQL(
"DROP VIEW my_view_name;",
),

@Seriouskosk
Copy link
Author

https://github.com/Seriouskosk/django-database-view - my solve

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