src/Schema.php
public function setIncrements($table, $increments)
    {
        if (!$this->hasTable($table)) {
            throw new TableNotFoundException("Table $table is not exist.");
        }

        $schema = $this->getSchema();

        if (!isset($schema[ $table ][ 'increments' ])) {
            throw new Exception("Table $table does not have an incremental value.");
        }

        $schema[ $table ][ 'increments' ] = $increments;
        $output                           = $this->save($this->path, $this->name, $schema);
        $this->reloadSchema();

        return $output;
    }
public function setIncrements($table, $increments)
    {
        if (!$this->hasTable($table)) {
            throw new TableNotFoundException("Table $table is not exist.");
        }

        $schema = $this->getSchema();

        if (!isset($schema[ $table ][ 'increments' ])) {
            throw new Exception("Table $table does not have an incremental value.");
        }

        $schema[ $table ][ 'increments' ] = $increments;
        $output                           = $this->save($this->path, $this->name, $schema);
        $this->reloadSchema();

        return $output;
    }
Modifie la valeur incrémentale d'une table.

@param string $table      Nom de la table.
@param int    $increments Tableau associatif des valeurs incrémentales.

@throws TableNotFoundException
@throws Exception
@return bool                   Si le schéma d'incrémentaion est bien enregistré.