mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(migration): Check if table exists
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
f1ba90d52d
commit
97c67ecb9c
1 changed files with 7 additions and 5 deletions
|
|
@ -28,11 +28,13 @@ class Version30000Date20240906095113 extends SimpleMigrationStep {
|
|||
/** @var ISchemaWrapper $schema */
|
||||
$schema = $schemaClosure();
|
||||
|
||||
$table = $schema->getTable('taskprocessing_tasks');
|
||||
$column = $table->getColumn('error_message');
|
||||
|
||||
if ($column->getLength() < 4000) {
|
||||
$column->setLength(4000);
|
||||
if ($schema->hasTable('taskprocessing_tasks')) {
|
||||
$table = $schema->getTable('taskprocessing_tasks');
|
||||
$column = $table->getColumn('error_message');
|
||||
|
||||
if ($column->getLength() < 4000) {
|
||||
$column->setLength(4000);
|
||||
}
|
||||
}
|
||||
|
||||
return $schema;
|
||||
|
|
|
|||
Loading…
Reference in a new issue