Hi! I have a model that my views depend on, and when I try to change that model and migrate it, I get
django.db.utils.NotSupportedError: cannot alter type of a column used by a view or rule
DETAIL: rule _RETURN on materialized view some_view depends on column "some_column"
The problem could be avoided if the views will be dropped before the migration, and recreated after.
Hi! I have a model that my views depend on, and when I try to change that model and migrate it, I get
The problem could be avoided if the views will be dropped before the migration, and recreated after.