fix migrations for "gallery" module