private function setMigrationFileAsCompleted($filename)
    {
        $migration = new MigrationEntity();
        $migration->setFilename(sql_prepare($filename));
        @$migration->save();

        return $this;
    }