Promoting a primary key raises an exception