# Migrate:multisite schlägt bei der zweiten Site fehl, wenn von Grund auf migriert wird

**URL:** <https://meta.discourse.org/t/migrate-multisite-fails-on-second-site-when-migrating-from-scratch/108559>\
**Category:** Bug\
**Created:** [7. Februar 2019 um 03:20 UTC](https://meta.discourse.org/t/migrate-multisite-fails-on-second-site-when-migrating-from-scratch/108559 "2019-02-07T03:20:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jamesh](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jamesh](https://meta.discourse.org/u/jamesh)\
**Post date:** [7. Februar 2019 um 03:20 UTC](https://meta.discourse.org/t/migrate-multisite-fails-on-second-site-when-migrating-from-scratch/108559/1 "2019-02-07T03:20:37Z")

</div>

I’ve just started to spin up our discourse instance, and when using multisite:migrate it failed on the second database:

> <https://gist.github.com/wryun/e1e38f7065e75d46edde10d399bd194c>

This may be caused by the changes in 40fa96777ddad4698df20d6b8a61afcf87743ed7, where a refactoring removed a lot of Discourse.reset\_active\_record\_cache, which would clear the leftover column information from the first migration (it appears to think a whole bunch of columns exist that don’t).

Or maybe I just did something wrong!

For now, I manually changed the failing migration to add a reset\_active\_record\_cache and it succeeded, but I suspect this will recur when I next add a site.

Discourse version used: de47b35b2d096d0fc9ac22e8cb85a38bba39bd70

---

_[View the full topic](https://meta.discourse.org/t/migrate-multisite-fails-on-second-site-when-migrating-from-scratch/108559)._
