Fix migrations.
Make galleries work again.