fixed mariadb constraints