Check if the metadata table doesn't exist (fresh install) if so add the migrations as done without doing them. The database schema is always the latest view of the database