generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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....
- Migration using Yii DB Migration
- Consule command using Yii Console Application
- 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
Labels
No labels