Skip to content

Process to run sql to create the queue table in the database #15

@aphraoh

Description

@aphraoh

What steps will reproduce the problem?

There is currently no process to run the sql to create the queue table in the database

What is the expected result?

One of the following should available....

  1. Migration using Yii DB Migration
  2. Consule command using Yii Console Application
  3. Other suggestions welcome

Does anyone example of how this might have been done in other packages?

What do you get instead?

Nothing!

Additional info

Here is the sql that need to be run...

CREATE TABLE IF NOT EXISTS `queue` (
  `id` int NOT NULL AUTO_INCREMENT,
  `channel` varchar(255) NOT NULL,
  `job` blob NOT NULL,
  `pushed_at` int NOT NULL,
  `ttr` int NOT NULL,
  `delay` int NOT NULL DEFAULT '0',
  `priority` int UNSIGNED NOT NULL DEFAULT '1024',
  `reserved_at` int DEFAULT NULL,
  `attempt` int DEFAULT NULL,
  `done_at` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `channel` (`channel`),
  KEY `reserved_at` (`reserved_at`),
  KEY `priority` (`priority`)
)
Q A
Version 1.0.?
PHP version
Operating system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions