| @@ 142-151 (lines=10) @@ | ||
| 139 | if ($schema->hasTable("${prefix}jobs")) { |
|
| 140 | $jobsTable = $schema->getTable("${prefix}jobs"); |
|
| 141 | ||
| 142 | if (!$jobsTable->hasColumn('last_checked')) { |
|
| 143 | $jobsTable->addColumn( |
|
| 144 | 'last_checked', |
|
| 145 | Type::INTEGER, |
|
| 146 | [ |
|
| 147 | 'default' => 0, |
|
| 148 | 'notnull' => false |
|
| 149 | ] |
|
| 150 | ); |
|
| 151 | } |
|
| 152 | ||
| 153 | if (!$jobsTable->hasColumn('reserved_at')) { |
|
| 154 | $jobsTable->addColumn( |
|
| @@ 153-162 (lines=10) @@ | ||
| 150 | ); |
|
| 151 | } |
|
| 152 | ||
| 153 | if (!$jobsTable->hasColumn('reserved_at')) { |
|
| 154 | $jobsTable->addColumn( |
|
| 155 | 'reserved_at', |
|
| 156 | Type::INTEGER, |
|
| 157 | [ |
|
| 158 | 'default' => 0, |
|
| 159 | 'notnull' => false |
|
| 160 | ] |
|
| 161 | ); |
|
| 162 | } |
|
| 163 | } |
|
| 164 | ||
| 165 | if ($schema->hasTable("${prefix}calendarobjects")) { |
|
| @@ 168-177 (lines=10) @@ | ||
| 165 | if ($schema->hasTable("${prefix}calendarobjects")) { |
|
| 166 | $calendarObjectsTable = $schema->getTable("${prefix}calendarobjects"); |
|
| 167 | ||
| 168 | if (!$calendarObjectsTable->hasColumn('classification')) { |
|
| 169 | $calendarObjectsTable->addColumn( |
|
| 170 | 'classification', |
|
| 171 | Type::INTEGER, |
|
| 172 | [ |
|
| 173 | 'default' => 0, |
|
| 174 | 'notnull' => false |
|
| 175 | ] |
|
| 176 | ); |
|
| 177 | } |
|
| 178 | ||
| 179 | if ($calendarObjectsTable->hasColumn('componenttype')) { |
|
| 180 | $componentType = $calendarObjectsTable->getColumn('componenttype'); |
|
| @@ 359-368 (lines=10) @@ | ||
| 356 | if ($schema->hasTable("${prefix}jobs")) { |
|
| 357 | $jobsTable = $schema->getTable("${prefix}jobs"); |
|
| 358 | ||
| 359 | if (!$jobsTable->hasColumn('last_checked')) { |
|
| 360 | $jobsTable->addColumn( |
|
| 361 | 'last_checked', |
|
| 362 | Type::INTEGER, |
|
| 363 | [ |
|
| 364 | 'default' => 0, |
|
| 365 | 'notnull' => false |
|
| 366 | ] |
|
| 367 | ); |
|
| 368 | } |
|
| 369 | ||
| 370 | if (!$jobsTable->hasColumn('reserved_at')) { |
|
| 371 | $jobsTable->addColumn( |
|
| @@ 370-379 (lines=10) @@ | ||
| 367 | ); |
|
| 368 | } |
|
| 369 | ||
| 370 | if (!$jobsTable->hasColumn('reserved_at')) { |
|
| 371 | $jobsTable->addColumn( |
|
| 372 | 'reserved_at', |
|
| 373 | Type::INTEGER, |
|
| 374 | [ |
|
| 375 | 'default' => 0, |
|
| 376 | 'notnull' => false |
|
| 377 | ] |
|
| 378 | ); |
|
| 379 | } |
|
| 380 | ||
| 381 | if (!$jobsTable->hasColumn('execution_duration')) { |
|
| 382 | $jobsTable->addColumn('execution_duration', Type::INTEGER, [ |
|