| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function configure(AbstractSchemaManager $schemaManager) |
||
| 38 | { |
||
| 39 | $schema = $schemaManager->createSchema(); |
||
| 40 | $table = $schema->createTable($this->tableName->toNative()); |
||
| 41 | |||
| 42 | $table->addColumn( |
||
| 43 | $this->idField->toNative(), |
||
| 44 | 'guid', |
||
| 45 | array('length' => 36, 'notnull' => true) |
||
| 46 | ); |
||
| 47 | $table->addColumn( |
||
| 48 | 'user_id', |
||
| 49 | 'guid', |
||
| 50 | array('length' => 36, 'notnull' => true) |
||
| 51 | ); |
||
| 52 | |||
| 53 | $table->setPrimaryKey([$this->idField->toNative(), 'user_id']); |
||
| 54 | |||
| 55 | $schemaManager->createTable($table); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |