getTable('jobs'); if (!$table->hasColumn('argument_hash')) { $table->addColumn('argument_hash', Types::STRING, [ 'notnull' => false, 'length' => 32, ]); $table->addIndex(['class', 'argument_hash'], 'job_argument_hash'); return $schema; } return null; } public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) { $update = $this->connection->getQueryBuilder(); $update->update('jobs') ->set('argument_hash', $update->func()->md5('argument')); $update->executeStatement(); } }