Preserve hidden primary key when altering table

Does something actually generate foo.yaml?