createOrReplaceFkCompensationTrigger method
List<String>
createOrReplaceFkCompensationTrigger(
- String opType,
- QualifiedTablename table,
- String childKey,
- QualifiedTablename fkTable,
- String joinedFkPKs,
- ForeignKey foreignKey,
Implementation
List<String> createOrReplaceFkCompensationTrigger(
String opType,
QualifiedTablename table,
String childKey,
QualifiedTablename fkTable,
String joinedFkPKs,
ForeignKey foreignKey,
) {
return [
dropTriggerIfExists(
'compensation_${opType.toLowerCase()}_${table.namespace}_${table.tablename}_${childKey}_into_oplog',
table,
),
...createFkCompensationTrigger(
opType,
table,
childKey,
fkTable,
joinedFkPKs,
foreignKey,
),
];
}