Note that after you add a primary key to a table, you need to add the table to the list of tables being replicated for the input. You can do this in the UI by editing the input or you can do this via the API. See "How to edit an input (add a table)" here.