From b447456baef953f8e9ba203c02608738afdb851f Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 13 Aug 2026 11:12:44 +0200 Subject: [PATCH] refactor: Port to modifyColumn ChangeColumn is deprecated and removed in nc35 Signed-off-by: Carl Schwan --- lib/Migration/Version000014Date20190817184844.php | 2 +- lib/Migration/Version000102Date20190901152326.php | 2 +- lib/Migration/Version000107Date20200608220000.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Migration/Version000014Date20190817184844.php b/lib/Migration/Version000014Date20190817184844.php index d03197f1c..acec947a2 100644 --- a/lib/Migration/Version000014Date20190817184844.php +++ b/lib/Migration/Version000014Date20190817184844.php @@ -34,7 +34,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('maps_favorites')) { $table = $schema->getTable('maps_favorites'); - $table->changeColumn('name', [ + $table->modifyColumn('name', [ 'notnull' => false, 'length' => 255, ]); diff --git a/lib/Migration/Version000102Date20190901152326.php b/lib/Migration/Version000102Date20190901152326.php index a6d2445e1..6c49f7571 100644 --- a/lib/Migration/Version000102Date20190901152326.php +++ b/lib/Migration/Version000102Date20190901152326.php @@ -34,7 +34,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('maps_address_geo')) { $table = $schema->getTable('maps_address_geo'); - $table->changeColumn('object_uri', [ + $table->modifyColumn('object_uri', [ 'notnull' => true, 'default' => '--', 'length' => 255, diff --git a/lib/Migration/Version000107Date20200608220000.php b/lib/Migration/Version000107Date20200608220000.php index 6b686f6e0..317edd615 100644 --- a/lib/Migration/Version000107Date20200608220000.php +++ b/lib/Migration/Version000107Date20200608220000.php @@ -34,7 +34,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('maps_tracks')) { $table = $schema->getTable('maps_tracks'); - $table->changeColumn('metadata', [ + $table->modifyColumn('metadata', [ 'notnull' => false, 'length' => 1000, ]);