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

CommentFileSizeAuthor
#3 date_to_calendar.zip1.23 KBRamast
#1 date_to_calendar.zip1.18 KBRamast
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ramast’s picture

FileSize
1.18 KB
fietserwin’s picture

Thanks 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.

Ramast’s picture

FileSize
1.23 KB

A better enhance version that is compatible with python2

fietserwin’s picture

Status: Fixed » Active

Setting to active, so it stays visible in my list.