&1 | grep -v \"will create implicit index\""); $sql = "INSERT INTO cc_pref(\"keystr\", \"valstr\") VALUES('scheduled_play_switch', 'on')"; UpgradeCommon::queryDb($sql); $log_sql = "INSERT INTO cc_live_log(\"state\", \"start_time\") VALUES('S', now() at time zone 'UTC')"; UpgradeCommon::queryDb($log_sql); } /* * set values for playout_status in cc_schedule */ private static function task1() { $con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME); $showInstances = CcShowInstancesQuery::create() ->setFormatter(ModelCriteria::FORMAT_ON_DEMAND) ->filterByDbStarts(gmdate("Y-m-d H:i:s"), Criteria::GREATER_EQUAL) ->find($con); foreach ($showInstances as $instance) { $instance->updateScheduleStatus($con); } } }