Just a few lines in the /etc/mysql/mariadb.conf.d/50-server.cnf or wherever your config is:
innodb-file-format=barracuda
innodb-file-per-table=ON
innodb-large-prefix=ON
innodb_default_row_format = 'DYNAMIC'
and sudo service mysql restart
https://stackoverflow.com/a/57465235/778234
See the docs: https://dev.mysql.com/doc/refman/5.6/en/innodb-row-format.html