public function updateMigration($type = 'up')
    {
        $file = $class = null;
        $file = $this->getAppMigrationDirPath().$this->getVersion().$this->getMigrationClass();

        if (is_readable($file.EXT)) {
            include_once $file.EXT;
            $class = Inflector::classify($this->getMigrationClass());
        }

        if (trim($type) !== 'down') {
            $type = 'up';
        }

        //Create migrations table schema if not exists
        $this->command->table()->makeMigration();

        call_user_func_array([new $class(), $type], []);

        $this->updateMigrationTable();

        $this->command->info('Migrated: '.$file.EXT.' OK!');
    }