public function setDone() {
        $migration = $this->getMigration();
        if ($migration['state']) {
            return true; //alredy done
        }
        $this->db()->update($this->table, array('state' => true), array('id' => $migration['id']));
    }