# Error on rebuild with bookmarks\_polymorphic

**URL:** <https://meta.discourse.org/t/error-on-rebuild-with-bookmarks-polymorphic/250543>\
**Category:** Self-hosting\
**Created:** [January 3, 2023, 10:09am UTC](https://meta.discourse.org/t/error-on-rebuild-with-bookmarks-polymorphic/250543 "2023-01-03T10:09:14Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![DeviceNull](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/devicenull/32/163051_2.png) [@DeviceNull](https://meta.discourse.org/u/DeviceNull)\
**Post date:** [February 10, 2023, 12:55pm UTC](https://meta.discourse.org/t/error-on-rebuild-with-bookmarks-polymorphic/250543/8 "2023-02-10T12:55:59Z")

</div>

1. Via your terminal (i assume bash) start mysql console inside the container:  
`docker exec -i name_of_your_container mysql`

In the mysql console:  
`use discourse;`  
`DROP TRIGGER bookmarks.bookmarks_polymorphic_data;`

Leave console with  
`exit`

After that the update script can should be able to drop the column and things should run smoothly - fingers crossed.

---

_[View the full topic](https://meta.discourse.org/t/error-on-rebuild-with-bookmarks-polymorphic/250543)._
