Conditions | 1 |
Paths | 1 |
Total Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function configure(AbstractSchemaManager $schemaManager) |
||
28 | { |
||
29 | $schema = $schemaManager->createSchema(); |
||
30 | $table = $schema->createTable($this->tableName->toNative()); |
||
31 | |||
32 | $table->addColumn( |
||
33 | 'id', |
||
34 | 'guid', |
||
35 | array('length' => 36, 'notnull' => true) |
||
36 | ); |
||
37 | $table->addColumn( |
||
38 | 'uid', |
||
39 | 'guid', |
||
40 | array('length' => 36, 'notnull' => true) |
||
41 | ); |
||
42 | $table->addColumn( |
||
43 | 'created', |
||
44 | 'string', |
||
45 | array('length' => 32, 'notnull' => true) |
||
46 | ); |
||
47 | $table->addColumn( |
||
48 | 'updated', |
||
49 | 'string', |
||
50 | array('length' => 32, 'notnull' => true) |
||
51 | ); |
||
52 | |||
53 | $table->setPrimaryKey(['id']); |
||
54 | |||
55 | $table->addIndex(['uid']); |
||
56 | |||
57 | $schemaManager->createTable($table); |
||
58 | } |
||
59 | } |
||
60 |