Ejemplo n.º 1
0
 /**
  * @codeCoverageIgnore
  */
 protected function createTable()
 {
     $this->db->createTable($this->table, null, ['columns' => [new Column('id', ['type' => Column::TYPE_BIGINTEGER, 'size' => 20, 'unsigned' => true, 'notNull' => true, 'primary' => true, 'autoIncrement' => true]), new Column('connection', ['type' => Column::TYPE_TEXT, 'notNull' => false]), new Column('queue', ['type' => Column::TYPE_TEXT, 'notNull' => false]), new Column('payload', ['type' => 'LONGTEXT', 'notNull' => false]), new Column('failed_at', ['type' => Column::TYPE_TIMESTAMP, 'notNull' => true, 'default' => 'CURRENT_TIMESTAMP'])], 'options' => ['TABLE_COLLATION' => Db::getDefaultTableCharset()]]);
 }