public function getChangelogMinDate()
    {
        $result = null;
        $asChange = 'c';
        $tblChange = $this->resource->getTableName(EChange::ENTITY_NAME);
        /* select from account */
        $query = $this->conn->select();
        $query->from([$asChange => $tblChange], [EChange::A_DATE_CHANGED]);
        /* order by */
        $query->order([$asChange . '.' . EChange::A_DATE_CHANGED . ' ASC']);
        /* perform query */
        $result = $this->conn->fetchOne($query);
        if ($result < self::DATE_MIN) {
            $result = self::DATE_MIN;
        }
        return $result;
    }
public function getChangelogMinDate()
    {
        $result = null;
        $asChange = 'c';
        $tblChange = $this->resource->getTableName(EChange::ENTITY_NAME);
        /* select from account */
        $query = $this->conn->select();
        $query->from([$asChange => $tblChange], [EChange::A_DATE_CHANGED]);
        /* order by */
        $query->order([$asChange . '.' . EChange::A_DATE_CHANGED . ' ASC']);
        /* perform query */
        $result = $this->conn->fetchOne($query);
        if ($result < self::DATE_MIN) {
            $result = self::DATE_MIN;
        }
        return $result;
    }
public function getChangelogMinDate ( ) { $ result = null ; $ asChange = 'c' ; $ tblChange = $ this -> resource -> getTableName ( EChange :: ENTITY_NAME ) ; /* select from account */ $ query = $ this -> conn -> select ( ) ; $ query -> from ( [ $ asChange => $ tblChange ] , [ EChange :: A_DATE_CHANGED ] ) ; /* order by */ $ query -> order ( [ $ asChange . '.' . EChange :: A_DATE_CHANGED . ' ASC' ] ) ; /* perform query */ $ result = $ this -> conn -> fetchOne ( $ query ) ; if ( $ result < self :: DATE_MIN ) { $ result = self :: DATE_MIN ; } return $ result ; }
Select MIN date for the existing change log.

SELECT
`c`.`date_changed`
FROM `prxgt_dwnl_change` AS `c`
ORDER BY `c`.`date_changed` ASC

@return string|null
Select MIN date for the existing change log .