diff --git a/src/Migration/SliderPermissionsMigration.php b/src/Migration/SliderPermissionsMigration.php index 8d41f49..c2eb000 100644 --- a/src/Migration/SliderPermissionsMigration.php +++ b/src/Migration/SliderPermissionsMigration.php @@ -70,7 +70,9 @@ public function shouldRun(): bool public function run(): MigrationResult { $defaultPermissions = serialize(['create', 'delete']); - $defaultSliders = serialize(array_values($this->connection->fetchFirstColumn("SELECT id FROM tl_rocksolid_slider"))); + $defaultSliders = serialize(array_values(array_map(function ($row) { + return $row['id']; + }, $this->connection->fetchAllAssociative("SELECT id FROM tl_rocksolid_slider")))); foreach (['tl_user', 'tl_user_group'] as $table) { foreach ([