PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | sh4/app/migration.php +3 -15 4.9.954.9.66 View file →
@@ -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( false && 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 );