You cannot attach a table if a primary-key or unique constraint exists on the surviving table or consumed table.
Drop the primary-key constraint and then attach the table. If you still want to use the primary-key constraint, re-create it.