createOrReplaceUpdateCompensationTrigger method

List<String> createOrReplaceUpdateCompensationTrigger(
  1. QualifiedTablename table,
  2. String childKey,
  3. QualifiedTablename fkTable,
  4. String joinedFkPKs,
  5. ForeignKey foreignKey,
)

Creates a trigger that logs compensations for updates into the oplog.

Implementation

List<String> createOrReplaceUpdateCompensationTrigger(
  QualifiedTablename table,
  String childKey,
  QualifiedTablename fkTable,
  String joinedFkPKs,
  ForeignKey foreignKey,
) {
  return createOrReplaceFkCompensationTrigger(
    'UPDATE',
    table,
    childKey,
    fkTable,
    joinedFkPKs,
    foreignKey,
  );
}