How to change the type of field via custom script (overwrite) after save of a doc
What is your use case or can you give context that you need to override a field type?
I am barely aware of Hiding help Menu
You can’t change database schema from a custom script (and why would you want to? it’s terrible idea).
If you want better answers, ask longer questions.