Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | protected static function createMessagesTable(Schema $schema) |
||
41 | { |
||
42 | $table = $schema->createTable('bernard_messages'); |
||
43 | $table->addColumn('id', 'integer', [ |
||
44 | 'autoincrement' => true, |
||
45 | 'unsigned' => true, |
||
46 | 'notnull' => true, |
||
47 | ]); |
||
48 | |||
49 | $table->addColumn('queue', 'string'); |
||
50 | $table->addColumn('message', 'text'); |
||
51 | $table->addColumn('visible', 'boolean', ['default' => true]); |
||
52 | $table->addColumn('sentAt', 'datetime'); |
||
53 | $table->setPrimaryKey(['id']); |
||
54 | $table->addIndex(['queue', 'sentAt', 'visible']); |
||
55 | } |
||
56 | } |
||
57 |