MySQL & MariaDB error 1503 ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
MySQLA … must include all columns in the table's partitioning function (prefixed columns are not considered).
MariaDBA … must include all columns in the table's partitioning function
How the message changed between versions