public function getMigration() {
        $query = $this->db()->createQueryBuilder()
          ->select('m.*')
          ->from($this->table, 'm')
          ->where('migration = ?')
          ->setParameter(0, get_class($this));
        $results = $query->execute();
        $migration = $results->fetch();

        if (!$migration) {
            $this->create();
            return true; //Is not in the DB so is new and is pending
        }

        return $migration;
    }