protected static function createMessagesTable(Schema $schema)
    {
        $table = $schema->createTable('bernard_messages');
        $table->addColumn('id', 'integer', [
            'autoincrement' => true,
            'unsigned' => true,
            'notnull' => true,
        ]);

        $table->addColumn('queue', 'string');
        $table->addColumn('message', 'text');
        $table->addColumn('visible', 'boolean', ['default' => true]);
        $table->addColumn('sentAt', 'datetime');
        $table->setPrimaryKey(['id']);
        $table->addIndex(['queue', 'sentAt', 'visible']);
    }
protected static function createMessagesTable(Schema $schema)
    {
        $table = $schema->createTable('bernard_messages');
        $table->addColumn('id', 'integer', [
            'autoincrement' => true,
            'unsigned' => true,
            'notnull' => true,
        ]);

        $table->addColumn('queue', 'string');
        $table->addColumn('message', 'text');
        $table->addColumn('visible', 'boolean', ['default' => true]);
        $table->addColumn('sentAt', 'datetime');
        $table->setPrimaryKey(['id']);
        $table->addIndex(['queue', 'sentAt', 'visible']);
    }
protected static function createMessagesTable ( Schema $ schema ) { $ table = $ schema -> createTable ( 'bernard_messages' ) ; $ table -> addColumn ( 'id' , 'integer' , [ 'autoincrement' => true , 'unsigned' => true , 'notnull' => true , ] ) ; $ table -> addColumn ( 'queue' , 'string' ) ; $ table -> addColumn ( 'message' , 'text' ) ; $ table -> addColumn ( 'visible' , 'boolean' , [ 'default' => true ] ) ; $ table -> addColumn ( 'sentAt' , 'datetime' ) ; $ table -> setPrimaryKey ( [ 'id' ] ) ; $ table -> addIndex ( [ 'queue' , 'sentAt' , 'visible' ] ) ; }
Creates message table on the current schema given.

@param Schema $schema
Creates message table on the current schema given .