I’m not going to explain it here, there are plenty of tutorials in the net. But I did findĀ a possible bug in MariaDB and filed an issue.
I was trying to create a database migration in SQL, to add some events for entities that are saved in the database using event sourcing.