Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ForeignKey Reference Action #355

Closed
Shinigami92 opened this issue Nov 14, 2018 · 1 comment
Closed

Add ForeignKey Reference Action #355

Shinigami92 opened this issue Nov 14, 2018 · 1 comment

Comments

@Shinigami92
Copy link
Collaborator

Can you update the d.ts file to enable 'action' as a type?

export type Action = 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT'

export interface ReferencesOptions {
    referencesConstraintName?: string
    references?: Name
    onDelete?: Action
    onUpdate?: Action
    match?: 'FULL' | 'SIMPLE'
}

https://github.com/salsita/node-pg-migrate/blob/master/index.d.ts#L19-L20

@dolezel
Copy link
Contributor

dolezel commented Nov 14, 2018

Sure 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants