| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function up(Schema $schema) |
||
| 18 | { |
||
| 19 | // create notifications table |
||
| 20 | $notificationsTable = $schema->createTable('notifications'); |
||
| 21 | $notificationsTable->addColumn('id', Type::INTEGER, ['unsigned' => true])->setAutoincrement(true); |
||
| 22 | $notificationsTable->addColumn('from_user', Type::STRING, ['length' => 32]); |
||
| 23 | $notificationsTable->addColumn('to_user', Type::STRING, ['length' => 32]); |
||
| 24 | $notificationsTable->addColumn('message', Type::TEXT); |
||
| 25 | $notificationsTable->addColumn('created', Type::DATETIME, [ |
||
| 26 | 'columnDefinition' => 'timestamp default current_timestamp', |
||
| 27 | ]); |
||
| 28 | $notificationsTable->addColumn('delivered', Type::DATETIME); |
||
| 29 | $notificationsTable->setPrimaryKey(['id']); |
||
| 30 | } |
||
| 31 | |||
| 41 |