| @@ -66,21 +66,12 @@ | ||
| 66 | 66 | $calendarsIds[] = $this->calendarsCommand->create( 'Waiter', '#89c4f4' ); |
| 67 | 67 | $timeoffId = $this->calendarsCommand->create( 'Time off', '#a9a9a9', NULL, SH4_Calendars_Model::TYPE_TIMEOFF ); |
| 68 | 68 | |
| 69 | 69 | $employeesIds = array(); |
| 70 | + $employeesIds[] = $this->employeesCommand->create( 'George' ); | |
| 71 | + $employeesIds[] = $this->employeesCommand->create( 'Karen' ); | |
| 72 | + $employeesIds[] = $this->employeesCommand->create( 'Sarah' ); | |
| 70 | 73 | |
| 71 | - if( defined('HC3_DEV_INSTALL') ){ | |
| 72 | - $numOfTestEmployees = 500; | |
| 73 | - for( $ii = 1; $ii <= $numOfTestEmployees; $ii++ ){ | |
| 74 | - $employeesIds[] = $this->employeesCommand->create( 'Employee ' . $ii ); | |
| 75 | - } | |
| 76 | - } | |
| 77 | - else { | |
| 78 | - $employeesIds[] = $this->employeesCommand->create( 'George' ); | |
| 79 | - $employeesIds[] = $this->employeesCommand->create( 'Karen' ); | |
| 80 | - $employeesIds[] = $this->employeesCommand->create( 'Sarah' ); | |
| 81 | - } | |
| 82 | - | |
| 83 | 74 | $holidaysShiftType = $this->shiftTypesQuery->findById( $holidaysId ); |
| 84 | 75 | $allDayShiftType = $this->shiftTypesQuery->findById( $allDayId ); |
| 85 | 76 | |
| 86 | 77 | $timeoffCalendar = $this->calendarsQuery->findById( $timeoffId ); |
| @@ -117,11 +108,8 @@ | ||
| 117 | 108 | $this->appCommand->addEmployeeToCalendar( $employee, $timeoffCalendar ); |
| 118 | 109 | } |
| 119 | 110 | |
| 120 | 111 | $hasVersion3 = $this->upgradeQuery->hasVersion3(); |
| 121 | - if( defined('HC3_DEV_INSTALL') ){ | |
| 122 | - $hasVersion3 = false; | |
| 123 | - } | |
| 124 | 112 | |
| 125 | 113 | if( $hasVersion3 ){ |
| 126 | 114 | list( $oldLocations, $oldEmployees, $oldShifts, $importUsers ) = $this->upgradeQuery->findOldData(); |
| 127 | 115 | $this->upgradeCommand->upgrade( $oldLocations, $oldEmployees, $oldShifts, $importUsers ); |