Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aphraoh opened this issue Apr 4, 2024 · 3 comments
Open

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

aphraoh opened this issue Apr 4, 2024 · 3 comments

Comments

@aphraoh
Copy link
Contributor

aphraoh commented Apr 4, 2024

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
@samdark
Copy link
Member

samdark commented Apr 5, 2024

@aphraoh aphraoh mentioned this issue Apr 9, 2024
@aphraoh
Copy link
Contributor Author

aphraoh commented Apr 9, 2024

https://github.com/yiisoft/rbac-db?tab=readme-ov-file#configuring-migrations

Thanx @samdark , this is now done, now going to try and create the tests using rbac-db as example.

Also can we please now get it added here: https://www.yiiframework.com/status/3.0

@samdark
Copy link
Member

samdark commented Apr 13, 2024

Also can we please now get it added here: https://www.yiiframework.com/status/3.0

Tagged package with "yii3".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants