MySQL & MariaDB error 1506 ER_FOREIGN_KEY_ON_PARTITIONED
Same number, two different errors. 1506 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLForeign keys are not yet supported in conjunction with partitioning
MariaDBPartitioned tables do not support …
How the message changed between versions