Hi guys, finally, I’ve come up with a very simple migration. Its NOT ready for production, but a starting point which I’ll continue to build upon and with you guys’ feedback, we can create a perfect migration.
Currently Supported Fields
event_start
event_end
event_all_day
event_rsvp
event_going
Usage:
-
Use the branch
migration
. If your setup is hosted, use this line in your app.yml.- git clone -b migration https://github.com/paviliondev/discourse-events.git
. -
Create the new discourse events while keeping the old events data intact :
rake events:migrate_events
-
Create the new discourse events and get rid of the old events data:
rake "events:migrate_events[1]"
Features:
- Migrates event_start and event_end
- All day events start from beginning of the day and last till the end of it.
- Migrates RSVP users as
Going
.
Quirks
- The
allowedGroups
setting will be defaulted totrust_level_0
for now.
Field map
event_start
Unix time stamp: of the event start date/time
event_end
, Unix time stamp: of the end start date/time
event_all_day
, boolean : whether its an all day event or not
event_timezone
, Event’s timezone(Rails style)
event_rsvp
, Whether users are allowed to rsvp
event_going
, RSVP user ids
event_going_max
, max number of people allowed to rsvp
event_version
, iCal event version
Unable to migrate
- category_custom_fields
- events_enabled
- events_agenda_enabled
- events_calendar_enabled
- events_required