Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SQLite: Enable foreign key constraints by default (currently requires manual PRAGMA) #453

@SaidTayebi

Description

@SaidTayebi

How can I activate foreign keys check before performing an Insert ?
I've tried

knex.raw('PRAGMA foreign keys = ON;'); 

But it's not working.

Any thoughts ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions