diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 249e227718..737b3435cf 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -22,6 +22,7 @@ HumHub Change Log - Enh: Added `humhub\widgets\Link::post()` for `data-method="POST` requests - Fix: Use `humhub\modules\user\components\ActiveQueryUser::active()` on UserPicker fillquery by default - Added `relativeUrl` to notification view parameter +- Fix #3335: Queue migration broken on some database configurations 1.3.8 (December 10, 2018) diff --git a/protected/humhub/modules/queue/migrations/m171025_142030_queue_update.php b/protected/humhub/modules/queue/migrations/m171025_142030_queue_update.php index 2ad964fe23..1e7d0eb78c 100644 --- a/protected/humhub/modules/queue/migrations/m171025_142030_queue_update.php +++ b/protected/humhub/modules/queue/migrations/m171025_142030_queue_update.php @@ -21,7 +21,7 @@ class m171025_142030_queue_update extends Migration $this->createTable($this->tableName, [ 'id' => $this->primaryKey(), - 'channel' => $this->string()->notNull(), + 'channel' => $this->string(50)->notNull(), 'job' => $this->binary()->notNull(), 'pushed_at' => $this->integer()->notNull(), 'ttr' => $this->integer()->notNull(), diff --git a/protected/humhub/modules/queue/migrations/m190211_133045_channel_length.php b/protected/humhub/modules/queue/migrations/m190211_133045_channel_length.php new file mode 100644 index 0000000000..dac8f40612 --- /dev/null +++ b/protected/humhub/modules/queue/migrations/m190211_133045_channel_length.php @@ -0,0 +1,47 @@ +alterColumn('queue', 'channel', $this->string(50)->notNull()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + echo "m190211_133045_channel_length cannot be reverted.\n"; + + return false; + } + + /* + // Use up()/down() to run migration code without a transaction. + public function up() + { + + } + + public function down() + { + echo "m190211_133045_channel_length cannot be reverted.\n"; + + return false; + } + */ +}