Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | date_to_calendar.zip | 1.23 KB | Ramast |
#1 | date_to_calendar.zip | 1.18 KB | Ramast |
Comments
Comment #1
Ramast CreditAttribution: 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 CreditAttribution: Ramast commentedA better enhance version that is compatible with python2
Comment #4
fietserwinSetting to active, so it stays visible in my list.