Converts 3.1 checkins to 4.1 checkins. It's true that in 3.1 there WAS a table named event_attendee_checkin, which recorded the time of registrations' checkins. HOWEVER, it was inconsistently used (if at all), and its data is basically junk. The checked_in_quantity and checked_in values on the attendee table are the important records to convert. So, in converting we use those numbers to decide how many checkins to add in 4.1, and just assume that they checked in at the time of the event (which is quite reasonable). We COULD try to hunt for the actual time of their checkin from the events_attendee_checkin table, but that'd be very difficult and problematic.
4.1 tables and fields: $this->_tables = array( 'Checkin'=>new EE_Primary_Table('esp_checkin','CHK_ID') ); $this->_fields = array( 'Checkin'=> array( 'CHK_ID'=>new EE_Primary_Key_Int_Field('CHK_ID', 'Checkin ID'), 'REG_ID'=>new EE_Foreign_Key_Int_Field('REG_ID', 'Registration Id', false, 1, 'Registration'), 'DTT_ID'=>new EE_Foreign_Key_Int_Field('DTT_ID', 'Datetime Id', false, 1, 'Datetime'), 'CHK_in'=>new EE_Boolean_Field('CHK_in', 'Whether a person has checked in or checked out', false, true), 'CHK_timestamp'=>new EE_Datetime_Field('CHK_timestamp', __('When the row was modified','event_espresso'), false, current_time('timestamp'), $timezone ) ) );
takes care of migrating this particular row from the OLD table to whatever its representation is in the new database. If there are errors, use $this->add_error to log them. If there is a fatal error which prevents all future migrations, throw an exception describing it
Methods inherited from EE_Data_Migration_Script_Stage_Table
Methods inherited from EE_Data_Migration_Script_Stage
Methods inherited from EE_Data_Migration_Class_Base