| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function changeSchema(Schema $schema, array $options) { |
||
| 10 | $prefix = $options['tablePrefix']; |
||
| 11 | if ($schema->hasTable("${prefix}dav_job_status")) { |
||
| 12 | return; |
||
| 13 | } |
||
| 14 | $table = $schema->createTable("${prefix}dav_job_status"); |
||
| 15 | $table->addColumn('id', Type::BIGINT, [ |
||
| 16 | 'autoincrement' => true, |
||
| 17 | 'notnull' => true, |
||
| 18 | 'length' => 20, |
||
| 19 | ]); |
||
| 20 | $table->addColumn('uuid', Type::GUID, [ |
||
| 21 | 'notnull' => true, |
||
| 22 | ]); |
||
| 23 | $table->addColumn('user_id', Type::STRING, [ |
||
| 24 | 'notnull' => true, |
||
| 25 | 'length' => 64, |
||
| 26 | ]); |
||
| 27 | $table->addColumn('status_info', Type::STRING, [ |
||
| 28 | 'notnull' => true, |
||
| 29 | 'length' => 4000, |
||
| 30 | ]); |
||
| 31 | $table->setPrimaryKey(['id']); |
||
| 32 | $table->addUniqueIndex(['uuid']); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |