Catalog should check that all migrations have been made before trying to install a package.
With the commit 79924f46 The migration of databases is made at launch of ideascube (wsgi).
On ansiblecube side, the migration is made explicitly when the package is updated.
But if a user update by hand the package and, directly after, try to install media using the catalog, the media installation can fail because of migration not applied.
The catalog should check that all migrations have been correctly applied before try to install media package and stop nicely instead of failing installing media.