diff --git a/core/Migrations/Version33000Date20250819110529.php b/core/Migrations/Version33000Date20250819110529.php index 570a2ee72d429..41f3e37a8128d 100644 --- a/core/Migrations/Version33000Date20250819110529.php +++ b/core/Migrations/Version33000Date20250819110529.php @@ -31,7 +31,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if (!$schema->hasTable('preview_locations')) { $table = $schema->createTable('preview_locations'); $table->addColumn('id', Types::BIGINT, ['autoincrement' => true, 'notnull' => true, 'length' => 20, 'unsigned' => true]); - $table->addColumn('bucket_name', Types::STRING, ['notnull' => true, 'length' => 40]); + $table->addColumn('bucket_name', Types::STRING, ['notnull' => true, 'length' => 63]); $table->addColumn('object_store_name', Types::STRING, ['notnull' => true, 'length' => 40]); $table->setPrimaryKey(['id']); } diff --git a/core/Migrations/Version33000Date20260306120000.php b/core/Migrations/Version33000Date20260306120000.php new file mode 100644 index 0000000000000..d86f7d5304d26 --- /dev/null +++ b/core/Migrations/Version33000Date20260306120000.php @@ -0,0 +1,40 @@ +hasTable('preview_locations')) { + $table = $schema->getTable('preview_locations'); + $column = $table->getColumn('bucket_name'); + + if ($column->getLength() < 63) { + $column->setLength(63); + } + } + + return $schema; + } +}