When i change doctype names and field names , new doctype(new tables) and new fields are created.
The older doctypes,tables are there. The older fields(columns) are there when i change field names.
I deleted old doctyes, dropped old columns from mysql. deleted folders in doctype folder.
after that updated the app in production.
But the columns and doctypes are still present in production. so i removed them in the same way.
Is it the way its supposed to be done or have i done anything in the wrong way?
It’s not really recommended but if ta columns were never used and they don’t contain any necessary data, then you can try it.
However, if you “renamed” the docfield (eg changed c-name to customer_name through the UI), then you’d be better off creating a script that checks if the unused columns still have important data stored inside them and manually transfer the data from the old column to the new one (while deleting the data in the unused columns).