SQLite Forum

Removing not null constraint doesn't behave correctly
Login
Direct modification of sqlite_master (or sqlite_schema these days) is going beyond the realm of defined or intended (by SQLite's developers) behavior.  To say your code "doesn't behave correctly" is incorrect as "correctly" is normally understood.