Error port device

I get syntax error when I try to run

-> MigrateToUtf8mb4: ALTER SCHEMA librenms DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘CreatePortGroupsTable: create table port_groups (id int unsigned not null…’ at line 1

I’ve just updated MariaDB at 10.5.9