Cake, SQLite+主キーがBIGINTな場合、Integrity constraint violation: 19 NOT NULL constraint failed: xxx.idとなる

github.com

PDOException: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: id · Issue #8857 · cakephp/cakephp · GitHub

SQLiteな場合、integer にせよとのこと

テストのデータベース(SQLite)と、production のデータベース(MySQL)が違っており気づくのが遅れた。。。