A new field is added to the ThinkPHP table, but adding add() and modifying save() are unsuccessful
Problem analysis:
Thinkphp, due to the field caching mechanism, generally caches the fields of the database in the file. When we add and modify the fields in the database, the cache file does not change, so when we add or save , Cannot succeed.
Solution:
delete the field cache under Runtime/Data/_fields/, or delete the entire Runtime file directly.