BezBartek / django-db-views

Creating automatic migrations for Views models witch working reverse and full command options like in normal makemigrations
MIT License
57 stars 11 forks source link

Create a view with the same name as the deleted one. #23

Open BezBartek opened 1 year ago

BezBartek commented 1 year ago

Related issue:

21

queued to fix in 0.1.6/0.1.7

nicolasroy11 commented 1 year ago

In the meanwhile, is there a way to remedy this manually, like, say, in the database manager? I don't see any views or migrations as a result of running makeviewmigration against an instance of Postgres.

BezBartek commented 1 year ago

@nicolasroy11 Hello Until I solve that, you can rename view in old migration (the view that is already deleted), and then create new one with the same name

I hope it will help, please let me know about results, :)

nicolasroy11 commented 1 year ago

So what I did is generate a view manually in PG, and the corresponding model seemed to be able to connect to that. So that's my workaround. Thanks.