# How to block migrations that delete a view in django?

**URL:** <https://forum.djangoproject.com/t/how-to-block-migrations-that-delete-a-view-in-django/35565>\
**Category:** ORM\
**Created:** [October 10, 2024, 11:21am UTC](https://forum.djangoproject.com/t/how-to-block-migrations-that-delete-a-view-in-django/35565 "2024-10-10T11:21:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielWade](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/gabrielwade/32/24480_2.png) [@GabrielWade](https://forum.djangoproject.com/u/GabrielWade)\
**Post date:** [October 10, 2024, 11:21am UTC](https://forum.djangoproject.com/t/how-to-block-migrations-that-delete-a-view-in-django/35565/1 "2024-10-10T11:21:47Z")

</div>

When we change the type of a column in Django and run a migration, it does not finish if any view is using the column. However, when we remove a column from the table and run a migration, Django does not interrupt the migration. How can I configure this?

Can we create a custom migration or even a trigger in the database?
