The affinity type does not force the column data types - it just makes an assumption about how the data store stores the data.
In the "affinity for type" section:
A column affinity type is the recommended type for storing data in this column. The important idea here is that a type is recommended, not required. Any column can store any type of data.
(in italics)
As for βhow to turn it on,β there is no such thing. This is how SQLite works all the time. There is nothing to turn on or off to get this functionality.
source share