migration fix: reinstate primary keys for smr tables