# העברת מסד נתונים נתקעת על ערך עצום של פריט "calendar-details" בטבלה "post\_custom\_fields"

**URL:** https://meta.discourse.org/t/database-migration-chokes-on-huge-value-of-a-calendar-details-item-in-table-post-custom-fields/172483
**Category:** Bug
**Created:** [7 בדצמבר,‏ 2020,‏ 11:54am UTC](https://meta.discourse.org/t/database-migration-chokes-on-huge-value-of-a-calendar-details-item-in-table-post-custom-fields/172483 "2020-12-07T11:54:54Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![amotl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amotl/32/109873_2.png) [@amotl](https://meta.discourse.org/u/amotl)
#### Post date: [7 בדצמבר,‏ 2020,‏ 4:01pm UTC](https://meta.discourse.org/t/database-migration-chokes-on-huge-value-of-a-calendar-details-item-in-table-post-custom-fields/172483/13 "2020-12-07T16:01:44Z")

</div>

Hi again,

> [@Falco](#):
>
> Delete the problematic row and stuff should work again.

```plaintext
[70] pry(main)> DB.query("DELETE FROM post_custom_fields WHERE post_id=20 AND name='calendar-details'")
=> []

```

After deleting the offending row, we activated `discourse-calendar` again. Followed up by another rebuild, we can report the missing migrations have been applied successfully

- `20200226183018 CreateCalendarEvents: migrated (0.8584s)`
- `20200409102640 CreatePostEventsTable: migrated (0.0381s)`
- `20200409102643 RenameTablesToDiscoursePostEvent: migrated (0.1840s)`
- `20201110225115 CreatePostEventDatesTable: migrated (0.0655s)`
- `20201111005205 MoveDataToEventDates: migrated (0.0039s)`

and everything is fine again.

Thank you very much for the excellent work you are doing here. 💯

With kind regards,  
Andreas.

---

_[View the full topic](https://meta.discourse.org/t/database-migration-chokes-on-huge-value-of-a-calendar-details-item-in-table-post-custom-fields/172483)._
