diff --git a/lib/Migration/Version000100Date20210201162900.php b/lib/Migration/Version000100Date20210201162900.php index 559fe0f73f9d8f59889911dbf9b96e95fcb20e10..2b6cc0945703781587ba548663437a279b9967e9 100644 --- a/lib/Migration/Version000100Date20210201162900.php +++ b/lib/Migration/Version000100Date20210201162900.php @@ -70,19 +70,16 @@ class Version000100Date20210201162900 extends SimpleMigrationStep { 'notnull' => true, ]); if ($table->hasColumn('playtime')) { - $table->changeColumn('playtime', [ - 'type' => Type::getType('integer') - ]); + $table->dropColumn('playtime'); + $table->addColumn('playtime', 'integer'); }; if ($table->hasColumn('duration')) { - $table->changeColumn('duration', [ - 'type' => Type::getType('integer') - ]); + $table->dropColumn('duration'); + $table->addColumn('duration', 'integer'); }; if ($table->hasColumn('lastplayed')) { - $table->changeColumn('lastplayed', [ - 'type' => Type::getType('integer') - ]); + $table->dropColumn('lastplayed'); + $table->addColumn('lastplayed', 'integer'); }; if ($table->hasColumn('author')) { $table->dropColumn('author');