PMCORE-496 Review why the command ./gulliver has some problems in the version 3.x

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-01-17 09:26:21 -04:00
parent 6dcf2e44ed
commit 0d9ef7d4b0
16 changed files with 518 additions and 465 deletions

View File

@@ -73,11 +73,11 @@ class JobsPendingMapBuilder
$tMap->addColumn('ATTEMPTS', 'Attempts', 'int', CreoleTypes::TINYINT, true, 3);
$tMap->addColumn('RESERVED_AT', 'ReservedAt', 'int', CreoleTypes::TINYINT, false, 10);
$tMap->addColumn('RESERVED_AT', 'ReservedAt', 'string', CreoleTypes::BIGINT, false, 10);
$tMap->addColumn('AVAILABLE_AT', 'AvailableAt', 'int', CreoleTypes::TINYINT, true, 10);
$tMap->addColumn('AVAILABLE_AT', 'AvailableAt', 'string', CreoleTypes::BIGINT, true, 10);
$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TINYINT, true, 10);
$tMap->addColumn('CREATED_AT', 'CreatedAt', 'string', CreoleTypes::BIGINT, true, 10);
} // doBuild()

View File

@@ -163,19 +163,19 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
* The value for the del_duration field.
* @var double
*/
protected $del_duration = 0;
protected $del_duration = 0.0;
/**
* The value for the del_queue_duration field.
* @var double
*/
protected $del_queue_duration = 0;
protected $del_queue_duration = 0.0;
/**
* The value for the del_delay_duration field.
* @var double
*/
protected $del_delay_duration = 0;
protected $del_delay_duration = 0.0;
/**
* The value for the del_started field.
@@ -1281,7 +1281,7 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
public function setDelDuration($v)
{
if ($this->del_duration !== $v || $v === 0) {
if ($this->del_duration !== $v || $v === 0.0) {
$this->del_duration = $v;
$this->modifiedColumns[] = AppCacheViewPeer::DEL_DURATION;
}
@@ -1297,7 +1297,7 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
public function setDelQueueDuration($v)
{
if ($this->del_queue_duration !== $v || $v === 0) {
if ($this->del_queue_duration !== $v || $v === 0.0) {
$this->del_queue_duration = $v;
$this->modifiedColumns[] = AppCacheViewPeer::DEL_QUEUE_DURATION;
}
@@ -1313,7 +1313,7 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
public function setDelDelayDuration($v)
{
if ($this->del_delay_duration !== $v || $v === 0) {
if ($this->del_delay_duration !== $v || $v === 0.0) {
$this->del_delay_duration = $v;
$this->modifiedColumns[] = AppCacheViewPeer::DEL_DELAY_DURATION;
}

View File

@@ -139,19 +139,19 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
* The value for the del_duration field.
* @var double
*/
protected $del_duration = 0;
protected $del_duration = 0.0;
/**
* The value for the del_queue_duration field.
* @var double
*/
protected $del_queue_duration = 0;
protected $del_queue_duration = 0.0;
/**
* The value for the del_delay_duration field.
* @var double
*/
protected $del_delay_duration = 0;
protected $del_delay_duration = 0.0;
/**
* The value for the del_started field.
@@ -181,7 +181,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
* The value for the app_overdue_percentage field.
* @var double
*/
protected $app_overdue_percentage = 0;
protected $app_overdue_percentage = 0.0;
/**
* The value for the usr_id field.
@@ -1079,7 +1079,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
public function setDelDuration($v)
{
if ($this->del_duration !== $v || $v === 0) {
if ($this->del_duration !== $v || $v === 0.0) {
$this->del_duration = $v;
$this->modifiedColumns[] = AppDelegationPeer::DEL_DURATION;
}
@@ -1095,7 +1095,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
public function setDelQueueDuration($v)
{
if ($this->del_queue_duration !== $v || $v === 0) {
if ($this->del_queue_duration !== $v || $v === 0.0) {
$this->del_queue_duration = $v;
$this->modifiedColumns[] = AppDelegationPeer::DEL_QUEUE_DURATION;
}
@@ -1111,7 +1111,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
public function setDelDelayDuration($v)
{
if ($this->del_delay_duration !== $v || $v === 0) {
if ($this->del_delay_duration !== $v || $v === 0.0) {
$this->del_delay_duration = $v;
$this->modifiedColumns[] = AppDelegationPeer::DEL_DELAY_DURATION;
}
@@ -1215,7 +1215,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
public function setAppOverduePercentage($v)
{
if ($this->app_overdue_percentage !== $v || $v === 0) {
if ($this->app_overdue_percentage !== $v || $v === 0.0) {
$this->app_overdue_percentage = $v;
$this->modifiedColumns[] = AppDelegationPeer::APP_OVERDUE_PERCENTAGE;
}

View File

@@ -145,13 +145,13 @@ abstract class BaseApplication extends BaseObject implements Persistent
* The value for the app_duration field.
* @var double
*/
protected $app_duration = 0;
protected $app_duration = 0.0;
/**
* The value for the app_delay_duration field.
* @var double
*/
protected $app_delay_duration = 0;
protected $app_delay_duration = 0.0;
/**
* The value for the app_drive_folder_uid field.
@@ -971,7 +971,7 @@ abstract class BaseApplication extends BaseObject implements Persistent
public function setAppDuration($v)
{
if ($this->app_duration !== $v || $v === 0) {
if ($this->app_duration !== $v || $v === 0.0) {
$this->app_duration = $v;
$this->modifiedColumns[] = ApplicationPeer::APP_DURATION;
}
@@ -987,7 +987,7 @@ abstract class BaseApplication extends BaseObject implements Persistent
public function setAppDelayDuration($v)
{
if ($this->app_delay_duration !== $v || $v === 0) {
if ($this->app_delay_duration !== $v || $v === 0.0) {
$this->app_delay_duration = $v;
$this->modifiedColumns[] = ApplicationPeer::APP_DELAY_DURATION;
}

View File

@@ -55,7 +55,7 @@ abstract class BaseDashboardIndicator extends BaseObject implements Persistent
* The value for the das_ind_goal field.
* @var double
*/
protected $das_ind_goal = 0;
protected $das_ind_goal = 0.0;
/**
* The value for the das_ind_direction field.
@@ -427,7 +427,7 @@ abstract class BaseDashboardIndicator extends BaseObject implements Persistent
public function setDasIndGoal($v)
{
if ($this->das_ind_goal !== $v || $v === 0) {
if ($this->das_ind_goal !== $v || $v === 0.0) {
$this->das_ind_goal = $v;
$this->modifiedColumns[] = DashboardIndicatorPeer::DAS_IND_GOAL;
}

View File

@@ -79,7 +79,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
* The value for the evn_tas_estimated_duration field.
* @var double
*/
protected $evn_tas_estimated_duration = 0;
protected $evn_tas_estimated_duration = 0.0;
/**
* The value for the evn_time_unit field.
@@ -91,7 +91,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
* The value for the evn_when field.
* @var double
*/
protected $evn_when = 0;
protected $evn_when = 0.0;
/**
* The value for the evn_max_attempts field.
@@ -566,7 +566,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
public function setEvnTasEstimatedDuration($v)
{
if ($this->evn_tas_estimated_duration !== $v || $v === 0) {
if ($this->evn_tas_estimated_duration !== $v || $v === 0.0) {
$this->evn_tas_estimated_duration = $v;
$this->modifiedColumns[] = EventPeer::EVN_TAS_ESTIMATED_DURATION;
}
@@ -604,7 +604,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
public function setEvnWhen($v)
{
if ($this->evn_when !== $v || $v === 0) {
if ($this->evn_when !== $v || $v === 0.0) {
$this->evn_when = $v;
$this->modifiedColumns[] = EventPeer::EVN_WHEN;
}

View File

@@ -53,19 +53,19 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* The value for the reserved_at field.
* @var int
* @var string
*/
protected $reserved_at;
/**
* The value for the available_at field.
* @var int
* @var string
*/
protected $available_at;
/**
* The value for the created_at field.
* @var int
* @var string
*/
protected $created_at;
@@ -130,7 +130,7 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* Get the [reserved_at] column value.
*
* @return int
* @return string
*/
public function getReservedAt()
{
@@ -141,7 +141,7 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* Get the [available_at] column value.
*
* @return int
* @return string
*/
public function getAvailableAt()
{
@@ -152,7 +152,7 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* Get the [created_at] column value.
*
* @return int
* @return string
*/
public function getCreatedAt()
{
@@ -251,16 +251,16 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* Set the value of [reserved_at] column.
*
* @param int $v new value
* @param string $v new value
* @return void
*/
public function setReservedAt($v)
{
// Since the native PHP type for this column is integer,
// we will cast the input value to an int (if it is not).
if ($v !== null && !is_int($v) && is_numeric($v)) {
$v = (int) $v;
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->reserved_at !== $v) {
@@ -273,16 +273,16 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* Set the value of [available_at] column.
*
* @param int $v new value
* @param string $v new value
* @return void
*/
public function setAvailableAt($v)
{
// Since the native PHP type for this column is integer,
// we will cast the input value to an int (if it is not).
if ($v !== null && !is_int($v) && is_numeric($v)) {
$v = (int) $v;
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->available_at !== $v) {
@@ -295,16 +295,16 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
/**
* Set the value of [created_at] column.
*
* @param int $v new value
* @param string $v new value
* @return void
*/
public function setCreatedAt($v)
{
// Since the native PHP type for this column is integer,
// we will cast the input value to an int (if it is not).
if ($v !== null && !is_int($v) && is_numeric($v)) {
$v = (int) $v;
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->created_at !== $v) {
@@ -339,11 +339,11 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
$this->attempts = $rs->getInt($startcol + 3);
$this->reserved_at = $rs->getInt($startcol + 4);
$this->reserved_at = $rs->getString($startcol + 4);
$this->available_at = $rs->getInt($startcol + 5);
$this->available_at = $rs->getString($startcol + 5);
$this->created_at = $rs->getInt($startcol + 6);
$this->created_at = $rs->getString($startcol + 6);
$this->resetModified();

View File

@@ -49,61 +49,61 @@ abstract class BaseProReporting extends BaseObject implements Persistent
* The value for the avg_time field.
* @var double
*/
protected $avg_time = 0;
protected $avg_time = 0.0;
/**
* The value for the sdv_time field.
* @var double
*/
protected $sdv_time = 0;
protected $sdv_time = 0.0;
/**
* The value for the total_cases_in field.
* @var double
*/
protected $total_cases_in = 0;
protected $total_cases_in = 0.0;
/**
* The value for the total_cases_out field.
* @var double
*/
protected $total_cases_out = 0;
protected $total_cases_out = 0.0;
/**
* The value for the configured_process_time field.
* @var double
*/
protected $configured_process_time = 0;
protected $configured_process_time = 0.0;
/**
* The value for the configured_process_cost field.
* @var double
*/
protected $configured_process_cost = 0;
protected $configured_process_cost = 0.0;
/**
* The value for the total_cases_open field.
* @var double
*/
protected $total_cases_open = 0;
protected $total_cases_open = 0.0;
/**
* The value for the total_cases_overdue field.
* @var double
*/
protected $total_cases_overdue = 0;
protected $total_cases_overdue = 0.0;
/**
* The value for the total_cases_on_time field.
* @var double
*/
protected $total_cases_on_time = 0;
protected $total_cases_on_time = 0.0;
/**
* The value for the pro_cost field.
* @var double
*/
protected $pro_cost = 0;
protected $pro_cost = 0.0;
/**
* The value for the pro_unit_cost field.
@@ -354,7 +354,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setAvgTime($v)
{
if ($this->avg_time !== $v || $v === 0) {
if ($this->avg_time !== $v || $v === 0.0) {
$this->avg_time = $v;
$this->modifiedColumns[] = ProReportingPeer::AVG_TIME;
}
@@ -370,7 +370,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setSdvTime($v)
{
if ($this->sdv_time !== $v || $v === 0) {
if ($this->sdv_time !== $v || $v === 0.0) {
$this->sdv_time = $v;
$this->modifiedColumns[] = ProReportingPeer::SDV_TIME;
}
@@ -386,7 +386,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setTotalCasesIn($v)
{
if ($this->total_cases_in !== $v || $v === 0) {
if ($this->total_cases_in !== $v || $v === 0.0) {
$this->total_cases_in = $v;
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_IN;
}
@@ -402,7 +402,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setTotalCasesOut($v)
{
if ($this->total_cases_out !== $v || $v === 0) {
if ($this->total_cases_out !== $v || $v === 0.0) {
$this->total_cases_out = $v;
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_OUT;
}
@@ -418,7 +418,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setConfiguredProcessTime($v)
{
if ($this->configured_process_time !== $v || $v === 0) {
if ($this->configured_process_time !== $v || $v === 0.0) {
$this->configured_process_time = $v;
$this->modifiedColumns[] = ProReportingPeer::CONFIGURED_PROCESS_TIME;
}
@@ -434,7 +434,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setConfiguredProcessCost($v)
{
if ($this->configured_process_cost !== $v || $v === 0) {
if ($this->configured_process_cost !== $v || $v === 0.0) {
$this->configured_process_cost = $v;
$this->modifiedColumns[] = ProReportingPeer::CONFIGURED_PROCESS_COST;
}
@@ -450,7 +450,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setTotalCasesOpen($v)
{
if ($this->total_cases_open !== $v || $v === 0) {
if ($this->total_cases_open !== $v || $v === 0.0) {
$this->total_cases_open = $v;
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_OPEN;
}
@@ -466,7 +466,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setTotalCasesOverdue($v)
{
if ($this->total_cases_overdue !== $v || $v === 0) {
if ($this->total_cases_overdue !== $v || $v === 0.0) {
$this->total_cases_overdue = $v;
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_OVERDUE;
}
@@ -482,7 +482,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setTotalCasesOnTime($v)
{
if ($this->total_cases_on_time !== $v || $v === 0) {
if ($this->total_cases_on_time !== $v || $v === 0.0) {
$this->total_cases_on_time = $v;
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_ON_TIME;
}
@@ -498,7 +498,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
public function setProCost($v)
{
if ($this->pro_cost !== $v || $v === 0) {
if ($this->pro_cost !== $v || $v === 0.0) {
$this->pro_cost = $v;
$this->modifiedColumns[] = ProReportingPeer::PRO_COST;
}

View File

@@ -199,7 +199,7 @@ abstract class BaseUsers extends BaseObject implements Persistent
* The value for the usr_cost_by_hour field.
* @var double
*/
protected $usr_cost_by_hour = 0;
protected $usr_cost_by_hour = 0.0;
/**
* The value for the usr_unit_cost field.
@@ -1394,7 +1394,7 @@ abstract class BaseUsers extends BaseObject implements Persistent
public function setUsrCostByHour($v)
{
if ($this->usr_cost_by_hour !== $v || $v === 0) {
if ($this->usr_cost_by_hour !== $v || $v === 0.0) {
$this->usr_cost_by_hour = $v;
$this->modifiedColumns[] = UsersPeer::USR_COST_BY_HOUR;
}

View File

@@ -61,67 +61,67 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
* The value for the total_queue_time_by_task field.
* @var double
*/
protected $total_queue_time_by_task = 0;
protected $total_queue_time_by_task = 0.0;
/**
* The value for the total_time_by_task field.
* @var double
*/
protected $total_time_by_task = 0;
protected $total_time_by_task = 0.0;
/**
* The value for the total_cases_in field.
* @var double
*/
protected $total_cases_in = 0;
protected $total_cases_in = 0.0;
/**
* The value for the total_cases_out field.
* @var double
*/
protected $total_cases_out = 0;
protected $total_cases_out = 0.0;
/**
* The value for the user_hour_cost field.
* @var double
*/
protected $user_hour_cost = 0;
protected $user_hour_cost = 0.0;
/**
* The value for the avg_time field.
* @var double
*/
protected $avg_time = 0;
protected $avg_time = 0.0;
/**
* The value for the sdv_time field.
* @var double
*/
protected $sdv_time = 0;
protected $sdv_time = 0.0;
/**
* The value for the configured_task_time field.
* @var double
*/
protected $configured_task_time = 0;
protected $configured_task_time = 0.0;
/**
* The value for the total_cases_overdue field.
* @var double
*/
protected $total_cases_overdue = 0;
protected $total_cases_overdue = 0.0;
/**
* The value for the total_cases_on_time field.
* @var double
*/
protected $total_cases_on_time = 0;
protected $total_cases_on_time = 0.0;
/**
* The value for the pro_cost field.
* @var double
*/
protected $pro_cost = 0;
protected $pro_cost = 0.0;
/**
* The value for the pro_unit_cost field.
@@ -449,7 +449,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setTotalQueueTimeByTask($v)
{
if ($this->total_queue_time_by_task !== $v || $v === 0) {
if ($this->total_queue_time_by_task !== $v || $v === 0.0) {
$this->total_queue_time_by_task = $v;
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_QUEUE_TIME_BY_TASK;
}
@@ -465,7 +465,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setTotalTimeByTask($v)
{
if ($this->total_time_by_task !== $v || $v === 0) {
if ($this->total_time_by_task !== $v || $v === 0.0) {
$this->total_time_by_task = $v;
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_TIME_BY_TASK;
}
@@ -481,7 +481,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setTotalCasesIn($v)
{
if ($this->total_cases_in !== $v || $v === 0) {
if ($this->total_cases_in !== $v || $v === 0.0) {
$this->total_cases_in = $v;
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_IN;
}
@@ -497,7 +497,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setTotalCasesOut($v)
{
if ($this->total_cases_out !== $v || $v === 0) {
if ($this->total_cases_out !== $v || $v === 0.0) {
$this->total_cases_out = $v;
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_OUT;
}
@@ -513,7 +513,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setUserHourCost($v)
{
if ($this->user_hour_cost !== $v || $v === 0) {
if ($this->user_hour_cost !== $v || $v === 0.0) {
$this->user_hour_cost = $v;
$this->modifiedColumns[] = UsrReportingPeer::USER_HOUR_COST;
}
@@ -529,7 +529,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setAvgTime($v)
{
if ($this->avg_time !== $v || $v === 0) {
if ($this->avg_time !== $v || $v === 0.0) {
$this->avg_time = $v;
$this->modifiedColumns[] = UsrReportingPeer::AVG_TIME;
}
@@ -545,7 +545,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setSdvTime($v)
{
if ($this->sdv_time !== $v || $v === 0) {
if ($this->sdv_time !== $v || $v === 0.0) {
$this->sdv_time = $v;
$this->modifiedColumns[] = UsrReportingPeer::SDV_TIME;
}
@@ -561,7 +561,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setConfiguredTaskTime($v)
{
if ($this->configured_task_time !== $v || $v === 0) {
if ($this->configured_task_time !== $v || $v === 0.0) {
$this->configured_task_time = $v;
$this->modifiedColumns[] = UsrReportingPeer::CONFIGURED_TASK_TIME;
}
@@ -577,7 +577,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setTotalCasesOverdue($v)
{
if ($this->total_cases_overdue !== $v || $v === 0) {
if ($this->total_cases_overdue !== $v || $v === 0.0) {
$this->total_cases_overdue = $v;
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_OVERDUE;
}
@@ -593,7 +593,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setTotalCasesOnTime($v)
{
if ($this->total_cases_on_time !== $v || $v === 0) {
if ($this->total_cases_on_time !== $v || $v === 0.0) {
$this->total_cases_on_time = $v;
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_ON_TIME;
}
@@ -609,7 +609,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
public function setProCost($v)
{
if ($this->pro_cost !== $v || $v === 0) {
if ($this->pro_cost !== $v || $v === 0.0) {
$this->pro_cost = $v;
$this->modifiedColumns[] = UsrReportingPeer::PRO_COST;
}