Reputation: 803
I have a Django application with a database with data.
All data have a timestamp when it was published on the form "season year". For example: "Spring 2017" or "Summer 2015"
I would like to change that field to a date and migrate all data to a default value for each season (Spring 2016 should be replaced with 2017-04-01, Winter 2013 with 2013-01-01 and so on)
Is there any way to do this with the standard migration?
Upvotes: 2
Views: 1110
Reputation: 9382
Upvotes: 1