protected function updateEntity(Entity $entity)
    {
        $action = \Schema::hasTable($entity->getTable()) ? 'update' : 'create';

        $this->migrations[$action][$entity->getTable()]['cols'] = $this->buildTable($entity);

        if($action == 'create' && $entity->timestamps) $this->migrations[$action][$entity->getTable()]['cols'][] = '$table->timestamps();';
    }
protected function updateEntity(Entity $entity)
    {
        $action = \Schema::hasTable($entity->getTable()) ? 'update' : 'create';

        $this->migrations[$action][$entity->getTable()]['cols'] = $this->buildTable($entity);

        if($action == 'create' && $entity->timestamps) $this->migrations[$action][$entity->getTable()]['cols'][] = '$table->timestamps();';
    }
protected function updateEntity ( Entity $ entity ) { $ action = \ Schema :: hasTable ( $ entity -> getTable ( ) ) ? 'update' : 'create' ; $ this -> migrations [ $ action ] [ $ entity -> getTable ( ) ] [ 'cols' ] = $ this -> buildTable ( $ entity ) ; if ( $ action == 'create' && $ entity -> timestamps ) $ this -> migrations [ $ action ] [ $ entity -> getTable ( ) ] [ 'cols' ] [ ] = '$table->timestamps();' ; }
Update the entity
Update the entity