dereuromark / cakephp-queue

Queue plugin for CakePHP - simple, pure PHP and without dependencies.
MIT License
307 stars 136 forks source link

database migration seems to be not working #386

Closed riubaring closed 1 year ago

riubaring commented 1 year ago

After updating cakephp-queue, proceeded to running the migration command:

bin\cake migrations migrate -P Queue -t 20191319000002

to rename column from job_type to job_task as defined in 20191319000002_MigrationQueueRename.php

The message on the screen shows

using migration paths
 - D:\MyApp\vendor\dereuromark\cakephp-queue\config\Migrations
using seed paths
 - D:\MyApp\vendor\dereuromark\cakephp-queue\config\Seeds
using environment default
using adapter mysql
using database cool_developer
ordering by creation time

All Done. Took 0.0110s

Dumps the current schema of the database to be used while baking a diff

using migration paths
 - D:\MyApp\vendor\dereuromark\cakephp-queue\config\Migrations
using seed paths
 - D:\MyApp\vendor\dereuromark\cakephp-queue\config\Seeds
Writing dump file `D:\MyApp\vendor\dereuromark\cakephp-queue\config\Migrations\schema-dump-default.lock`...
Dump file `D:\MyApp\vendor\dereuromark\cakephp-queue\config\Migrations\schema-dump-default.lock` was successfully written

Seems successful, but when I double-checked table queued_jobs, the column job_type still the same. And, there is no entry for MigrationQueueRename.

riubaring commented 1 year ago

This is an operator error. Closing.