why foreign_keys not work.Cause you mother fuck need to add some code.
db = try! Connection()
try! db.execute("PRAGMA foreign_keys = ON;")
Link :https://github.com/stephencelis/SQLite.swift/issues/757

See it , it took me hours on.
网友评论