public function getStatusModel()
    {
        /** @type SQL_Model $m */
        $m = $this->add('SQL_Model', ['table' => '_db_update']);
        $m->addField('name');
        $m->addField('status')->enum(['ok', 'fail']);
        $m->setSource('SQL');

        return $m;
    }
public function getStatusModel()
    {
        /** @type SQL_Model $m */
        $m = $this->add('SQL_Model', ['table' => '_db_update']);
        $m->addField('name');
        $m->addField('status')->enum(['ok', 'fail']);
        $m->setSource('SQL');

        return $m;
    }
public function getStatusModel ( ) { /** @type SQL_Model $m */ $ m = $ this -> add ( 'SQL_Model' , [ 'table' => '_db_update' ] ) ; $ m -> addField ( 'name' ) ; $ m -> addField ( 'status' ) -> enum ( [ 'ok' , 'fail' ] ) ; $ m -> setSource ( 'SQL' ) ; return $ m ; }
Produces and returns a generic model you can supply to your Grid
if you want show migration status.
Produces and returns a generic model you can supply to your Grid if you want show migration status .