MBS-7603: Add replication for link_attribute_text_value, initial upgrade script.
MBS-7603: also fix link_text_attribute_type and orderable_link_type (incl. PK for replication being possible)
MBS-7603: ALTER TABLE takes heavy locks already, so get them at the start of the transaction instead
Reinsert from proper table (+ tmp_)
Merge branch 'mbs-7603-missing-replication'

* mbs-7603-missing-replication:
  Reinsert from proper table (+ tmp_)
  MBS-7603: ALTER TABLE takes heavy locks already, so get them at the start of the transaction instead
  MBS-7603: also fix link_text_attribute_type and orderable_link_type (incl. PK for replication being possible)
  MBS-7603: Add replication for link_attribute_text_value, initial upgrade script.