Review https://gerrit.wikimedia.org/r/#/c/238393/ . If the code and deployment plan is acceptable, then run db_patches/patch-ref_id-phase1.sql from latest patch set of that change.
This has to be done on flowdb on extension1, and officewiki on the standard cluster.
It should be done before https://gerrit.wikimedia.org/r/#/c/238393/ is merged. You can just mark this task resolved and comment on that Gerrit, and we'll take care of merging and deploying.
This is to ensure that all Flow tables have a PK; see T109676. I have tested that Flow works continually if the deployment plan given on that Gerrit is followed.