Before I use availability calendar module I used "Date" field with "collect end date" check box
Now in order to switch from date field to availability calendar field I had to find a way to migrate the existing data
for that reason I wrote the attached python script (only tested on Linux)
requires drush and drush_entity module
Please note that this script is one way migration, all data in all availability calendar fields will be lost after running this script!!!!
P.S
I am new here so I am not sure if this is the right place to post my contributions, sorry if I posted this in the wrong place
Comments
Comment #1
Ramast commentedComment #2
fietserwinThanks for sharing your data migration code. I will have a look at your code and if it seems robust enough I may mention it on the project page and in the readme. I won't turn it into a submodule or add it to the default install.
Comment #3
Ramast commentedA better enhance version that is compatible with python2
Comment #4
fietserwinSetting to active, so it stays visible in my list.