Skip to content

postgrelize / CreateTriggerOptions

Type Alias: CreateTriggerOptions ​

CreateTriggerOptions = Readonly<{ replace?: boolean; }>

Defined in: src/ddl/trigger-ddl.ts:42

Options of createTrigger.

Example ​

ts
const options: CreateTriggerOptions = { replace: true };
await queryInterface.createTrigger('Posts', 'posts_touch', 'before', ['update'], 'touch', [], [], options);

Released under the MIT License.