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

        $schema = $this->getSchema();

        $deleteSchema = true;
        if ($schema[ $table ][ 'increments' ] !== null) {
            $schema[ $table ][ 'increments' ] = 0;
            $deleteSchema                     = $this->save($this->path, $this->name, $schema);
            $this->reloadSchema();
        }
        $deleteData = $this->save($this->path, $table, []);

        return $deleteSchema && $deleteData;
    }
public function truncateTable($table)
    {
        if (!$this->hasTable($table)) {
            throw new TableNotFoundException("Table $table is not exist.");
        }

        $schema = $this->getSchema();

        $deleteSchema = true;
        if ($schema[ $table ][ 'increments' ] !== null) {
            $schema[ $table ][ 'increments' ] = 0;
            $deleteSchema                     = $this->save($this->path, $this->name, $schema);
            $this->reloadSchema();
        }
        $deleteData = $this->save($this->path, $table, []);

        return $deleteSchema && $deleteData;
    }
Vide la table et initialise les champs incrémentaux.

@param String $table Nom de la table.

@throws TableNotFoundException
@return bool