return $schema;
} private function addTableToSchema(Schema
$schema): void
{ $table =
$schema->
createTable($this->configuration
['table_name'
]);
// add an internal option to mark that we created this & the non-namespaced table name
$table->
addOption(self::TABLE_OPTION_NAME,
$this->configuration
['table_name'
]);
$table->
addColumn('id', Types::BIGINT
) ->
setAutoincrement(true
) ->
setNotnull(true
);
$table->
addColumn('body', Types::TEXT
) ->
setNotnull(true
);
$table->
addColumn('headers', Types::TEXT
) ->
setNotnull(true
);
$table->
addColumn('queue_name', Types::STRING
) ->
setLength(190
) // MySQL 5.6 only supports 191 characters on an indexed column in utf8mb4 mode
->
setNotnull(true
);
$table->
addColumn('created_at', Types::DATETIME_IMMUTABLE
) ->
setNotnull(true
);
$table->
addColumn('available_at', Types::DATETIME_IMMUTABLE
) ->
setNotnull(true
);