I am trying to run the statement ALTER TABLE invoice_partitioned DROP PRIMARY KEY, ADD PRIMARY KEY(invoice_partitioned.id, invoice_partitioned.department_code);
This produces a syntax error (Error Code 1064) when run. MySQL Workbench is highlighting the bracket after ADD PRIMARY KEY, with the message '"(" is not valid at this position for this server version'.
Is there any way to resolve this issue? I am on MySQL Community Server 8.0.19