# マイグレーションのトラブル：他のオブジェクトが依存しているため、関数 delete\_user\_password() を削除できません。

**URL:** <https://meta.discourse.org/t/migration-trouble-due-to-stopping-a-restore-before-it-finished/373630>\
**Category:** Product Support\
**Created:** [2025 年 7 月 9 日午後 7:45 UTC](https://meta.discourse.org/t/migration-trouble-due-to-stopping-a-restore-before-it-finished/373630 "2025-07-09T19:45:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2025 年 7 月 9 日午後 7:45 UTC](https://meta.discourse.org/t/migration-trouble-due-to-stopping-a-restore-before-it-finished/373630/1 "2025-07-09T19:45:29Z")

</div>

```plaintext
PG::DependentObjectsStillExist: ERROR: cannot drop function delete_user_password() because other objects depend on it

```

こちらから来ているようです：

> <https://github.com/discourse/discourse/blob/fe1b1edba7ab3867fd920143bb8f3b9584db5bfb/db/migrate/20240903024211_add_trigger_to_users_to_sync_user_passwords.rb#L42>

---

_[View the full topic](https://meta.discourse.org/t/migration-trouble-due-to-stopping-a-restore-before-it-finished/373630)._
