djangosnippets.org: Latest snippets tagged with 'schema_evolution'https://djangosnippets.org/tags/schema_evolution/2007-04-17T22:44:26.526194-05:00Changing field type in production
2007-04-17T22:44:26.526194-05:00lawgonhttps://djangosnippets.org/snippets/188/<p>Assume a model called 'Child' with a field called 'schoolstd' whic h is of integer type and not null. You need to change it to char type and not null and the same time preserve the data. The above snippet does this in postgresql.</p>
Freely redistributable