public static function migrateUp(Event $event)
    {
        $dir = self::getRootDir().'DoctrineMigrations';
        if (self::isHaveMigrations($dir)) {
            self::repackMigrations($dir);
            self::executeCommand('doctrine:migrations:migrate --no-interaction', $event->getIO());
        }
    }