console: show PG trigger condition on Table modify page

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8555
GitOrigin-RevId: 5cfac5789bee2f61c7be24db20e155bb4f07cb50
This commit is contained in:
Rikin Kachhia 2023-03-30 12:27:38 +05:30 committed by hasura-bot
parent a7053fd9b5
commit 16bd34f9c3
2 changed files with 5 additions and 1 deletions

View File

@ -99,7 +99,10 @@ const TriggerEditorList = ({ tableSchema, dispatch }) => {
<div>
<i>
{trigger.action_timing} {trigger.event_manipulation}, FOR EACH{' '}
{trigger.action_orientation}
{trigger.action_orientation}{' '}
{trigger.action_condition
? ' WHEN ' + trigger.action_condition
: ''}
</i>
<AceEditor
mode="sql"

View File

@ -63,6 +63,7 @@ export interface PostgresTrigger {
trigger_schema: string;
action_statement: string;
action_orientation: string;
action_condition: string;
event_manipulation: string;
}