I'm creating a Drupal 7 site that has many content types which are defined programmatically. It is quite likely that, after launch, I will be required to slightly modify some of the content types. During development, whenever I need to make a change, I just uninstall the module, make the changes in code, and reinstall it. In a production environment where the data needs to be kept stable, this is clearly not acceptable.
How can I modify one of my existing content types programmatically? Also, how would I apply this update?
Open WWWROOT/profiles/standard/standard.install (starting from line 199) Profile install creates basic content types (like Article and Basic page)
What are you changing slightly? If you are just adding a field to a type, all that is doing is creating another database entry, and any preexisting content will just have nothing in that field until edited again, so you could just do that either through your module or through the menus. However, if you are changing field names, well that's a whole 'nother story in itself.