yiisoft / yiisoft/queue-db

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

Open
#15 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3
Forks
4
Avg merge
51m
Merged PRs (30d)
1

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....

  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SQL schema included in the issue and review how this package currently initializes or accesses its queue table. Compare the proposed Yii DB Migration and Yii Console Application approaches, then confirm the project direction before choosing one. Done means users have a documented, repeatable process that creates the queue table.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.