@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
3 | - exit('NO direct script access allowed'); |
|
3 | + exit('NO direct script access allowed'); |
|
4 | 4 | } |
5 | 5 | |
6 | 6 | /** |
@@ -18,130 +18,130 @@ discard block |
||
18 | 18 | class Registration_Form_Question_Groups_Help_Tour extends EE_Help_Tour |
19 | 19 | { |
20 | 20 | |
21 | - protected function _set_tour_properties() |
|
22 | - { |
|
23 | - $this->_label = __('Question Groups Tour', 'event_espresso'); |
|
24 | - $this->_slug = $this->_is_caf ? 'question-groups-caf-overview-joyride' : 'question-groups-overview-joyride'; |
|
25 | - } |
|
21 | + protected function _set_tour_properties() |
|
22 | + { |
|
23 | + $this->_label = __('Question Groups Tour', 'event_espresso'); |
|
24 | + $this->_slug = $this->_is_caf ? 'question-groups-caf-overview-joyride' : 'question-groups-overview-joyride'; |
|
25 | + } |
|
26 | 26 | |
27 | 27 | |
28 | - protected function _set_tour_stops() |
|
29 | - { |
|
30 | - $this->_stops = array( |
|
31 | - 10 => array( |
|
32 | - 'content' => $this->_start(), |
|
33 | - ) |
|
34 | - ); |
|
28 | + protected function _set_tour_stops() |
|
29 | + { |
|
30 | + $this->_stops = array( |
|
31 | + 10 => array( |
|
32 | + 'content' => $this->_start(), |
|
33 | + ) |
|
34 | + ); |
|
35 | 35 | |
36 | - if ($this->_is_caf) { |
|
37 | - $this->_stops[20] = array( |
|
38 | - 'id' => 'name', |
|
39 | - 'content' => $this->_name_stop(), |
|
40 | - 'options' => array( |
|
41 | - 'tipLocation' => 'top', |
|
42 | - 'tipAdjustmentY' => -30, |
|
43 | - 'tipAdjustmentX' => 25 |
|
44 | - ) |
|
45 | - ); |
|
46 | - $this->_stops[30] = array( |
|
47 | - 'id' => 'description', |
|
48 | - 'content' => $this->_description_stop(), |
|
49 | - 'options' => array( |
|
50 | - 'tipLocation' => 'top', |
|
51 | - 'tipAdjustmentY' => -30, |
|
52 | - 'tipAdjustmentX' => 20 |
|
53 | - ) |
|
54 | - ); |
|
55 | - $this->_stops[40] = array( |
|
56 | - 'id' => 'show_group_name', |
|
57 | - 'content' => $this->_show_group_name_stop(), |
|
58 | - 'options' => array( |
|
59 | - 'tipLocation' => 'top', |
|
60 | - 'tipAdjustmentY' => -30, |
|
61 | - 'tipAdjustmentX' => 20 |
|
62 | - ) |
|
63 | - ); |
|
64 | - $this->_stops[50] = array( |
|
65 | - 'id' => 'show_group_desc', |
|
66 | - 'content' => $this->_show_group_description_stop(), |
|
67 | - 'options' => array( |
|
68 | - 'tipLocation' => 'top', |
|
69 | - 'tipAdjustmentY' => -30, |
|
70 | - 'tipAdjustmentX' => 20 |
|
71 | - ) |
|
72 | - ); |
|
73 | - $this->_stops[60] = array( |
|
74 | - 'class' => 'bulkactions', |
|
75 | - 'content' => $this->_bulk_actions_stop(), |
|
76 | - 'options' => array( |
|
77 | - 'tipLocation' => 'left', |
|
78 | - 'tipAdjustmentY' => -50, |
|
79 | - 'tipAdjustmentX' => -80 |
|
80 | - ) |
|
81 | - ); |
|
82 | - $this->_stops[70] = array( |
|
83 | - 'id' => 'add-new-question-group', |
|
84 | - 'content' => $this->_add_new_question_group_stop(), |
|
85 | - 'options' => array( |
|
86 | - 'tipLocation' => 'right', |
|
87 | - 'tipAdjustmentY' => -50, |
|
88 | - 'tipAdjustmentX' => 15 |
|
89 | - ) |
|
90 | - ); |
|
91 | - } |
|
92 | - } |
|
36 | + if ($this->_is_caf) { |
|
37 | + $this->_stops[20] = array( |
|
38 | + 'id' => 'name', |
|
39 | + 'content' => $this->_name_stop(), |
|
40 | + 'options' => array( |
|
41 | + 'tipLocation' => 'top', |
|
42 | + 'tipAdjustmentY' => -30, |
|
43 | + 'tipAdjustmentX' => 25 |
|
44 | + ) |
|
45 | + ); |
|
46 | + $this->_stops[30] = array( |
|
47 | + 'id' => 'description', |
|
48 | + 'content' => $this->_description_stop(), |
|
49 | + 'options' => array( |
|
50 | + 'tipLocation' => 'top', |
|
51 | + 'tipAdjustmentY' => -30, |
|
52 | + 'tipAdjustmentX' => 20 |
|
53 | + ) |
|
54 | + ); |
|
55 | + $this->_stops[40] = array( |
|
56 | + 'id' => 'show_group_name', |
|
57 | + 'content' => $this->_show_group_name_stop(), |
|
58 | + 'options' => array( |
|
59 | + 'tipLocation' => 'top', |
|
60 | + 'tipAdjustmentY' => -30, |
|
61 | + 'tipAdjustmentX' => 20 |
|
62 | + ) |
|
63 | + ); |
|
64 | + $this->_stops[50] = array( |
|
65 | + 'id' => 'show_group_desc', |
|
66 | + 'content' => $this->_show_group_description_stop(), |
|
67 | + 'options' => array( |
|
68 | + 'tipLocation' => 'top', |
|
69 | + 'tipAdjustmentY' => -30, |
|
70 | + 'tipAdjustmentX' => 20 |
|
71 | + ) |
|
72 | + ); |
|
73 | + $this->_stops[60] = array( |
|
74 | + 'class' => 'bulkactions', |
|
75 | + 'content' => $this->_bulk_actions_stop(), |
|
76 | + 'options' => array( |
|
77 | + 'tipLocation' => 'left', |
|
78 | + 'tipAdjustmentY' => -50, |
|
79 | + 'tipAdjustmentX' => -80 |
|
80 | + ) |
|
81 | + ); |
|
82 | + $this->_stops[70] = array( |
|
83 | + 'id' => 'add-new-question-group', |
|
84 | + 'content' => $this->_add_new_question_group_stop(), |
|
85 | + 'options' => array( |
|
86 | + 'tipLocation' => 'right', |
|
87 | + 'tipAdjustmentY' => -50, |
|
88 | + 'tipAdjustmentX' => 15 |
|
89 | + ) |
|
90 | + ); |
|
91 | + } |
|
92 | + } |
|
93 | 93 | |
94 | 94 | |
95 | - protected function _start() |
|
96 | - { |
|
97 | - $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
98 | - if ($this->_is_caf) { |
|
99 | - $content .= '<p>' . __('This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | - 'event_espresso') . '</p>'; |
|
101 | - } else { |
|
102 | - $content .= '<p>' . __('Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
103 | - 'event_espresso') . '</p>'; |
|
104 | - } |
|
95 | + protected function _start() |
|
96 | + { |
|
97 | + $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
98 | + if ($this->_is_caf) { |
|
99 | + $content .= '<p>' . __('This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | + 'event_espresso') . '</p>'; |
|
101 | + } else { |
|
102 | + $content .= '<p>' . __('Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
103 | + 'event_espresso') . '</p>'; |
|
104 | + } |
|
105 | 105 | |
106 | - return $content; |
|
107 | - } |
|
106 | + return $content; |
|
107 | + } |
|
108 | 108 | |
109 | - protected function _name_stop() |
|
110 | - { |
|
111 | - return '<p>' . __('View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
112 | - 'event_espresso') . '</p>'; |
|
113 | - } |
|
109 | + protected function _name_stop() |
|
110 | + { |
|
111 | + return '<p>' . __('View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
112 | + 'event_espresso') . '</p>'; |
|
113 | + } |
|
114 | 114 | |
115 | - protected function _description_stop() |
|
116 | - { |
|
117 | - return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
118 | - } |
|
115 | + protected function _description_stop() |
|
116 | + { |
|
117 | + return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
118 | + } |
|
119 | 119 | |
120 | - protected function _show_group_name_stop() |
|
121 | - { |
|
122 | - return '<p>' . __('View if the name of the question group should be shown to customers.', |
|
123 | - 'event_espresso') . '</p>'; |
|
124 | - } |
|
120 | + protected function _show_group_name_stop() |
|
121 | + { |
|
122 | + return '<p>' . __('View if the name of the question group should be shown to customers.', |
|
123 | + 'event_espresso') . '</p>'; |
|
124 | + } |
|
125 | 125 | |
126 | - protected function _show_group_description_stop() |
|
127 | - { |
|
128 | - return '<p>' . __('View if the description of the question group should be shown to customers.', |
|
129 | - 'event_espresso') . '</p>'; |
|
130 | - } |
|
126 | + protected function _show_group_description_stop() |
|
127 | + { |
|
128 | + return '<p>' . __('View if the description of the question group should be shown to customers.', |
|
129 | + 'event_espresso') . '</p>'; |
|
130 | + } |
|
131 | 131 | |
132 | - protected function _bulk_actions_stop() |
|
133 | - { |
|
134 | - return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
135 | - } |
|
132 | + protected function _bulk_actions_stop() |
|
133 | + { |
|
134 | + return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
135 | + } |
|
136 | 136 | |
137 | - protected function _search_stop() |
|
138 | - { |
|
139 | - return '<p>' . __('Search through questions. The following sources will be searched: question group name and question group description.', |
|
140 | - 'event_espresso') . '</p>'; |
|
141 | - } |
|
137 | + protected function _search_stop() |
|
138 | + { |
|
139 | + return '<p>' . __('Search through questions. The following sources will be searched: question group name and question group description.', |
|
140 | + 'event_espresso') . '</p>'; |
|
141 | + } |
|
142 | 142 | |
143 | - protected function _add_new_question_group_stop() |
|
144 | - { |
|
145 | - return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
146 | - } |
|
143 | + protected function _add_new_question_group_stop() |
|
144 | + { |
|
145 | + return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
146 | + } |
|
147 | 147 | } |
148 | 148 | \ No newline at end of file |
@@ -94,13 +94,13 @@ discard block |
||
94 | 94 | |
95 | 95 | protected function _start() |
96 | 96 | { |
97 | - $content = '<h3>' . __('Question Groups', 'event_espresso') . '</h3>'; |
|
97 | + $content = '<h3>'.__('Question Groups', 'event_espresso').'</h3>'; |
|
98 | 98 | if ($this->_is_caf) { |
99 | - $content .= '<p>' . __('This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | - 'event_espresso') . '</p>'; |
|
99 | + $content .= '<p>'.__('This tour of the Question Groups page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | + 'event_espresso').'</p>'; |
|
101 | 101 | } else { |
102 | - $content .= '<p>' . __('Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
103 | - 'event_espresso') . '</p>'; |
|
102 | + $content .= '<p>'.__('Sorry, Event Espresso Decaf does not have this feature. Please purchase a support license to get access to this feature.', |
|
103 | + 'event_espresso').'</p>'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | return $content; |
@@ -108,40 +108,40 @@ discard block |
||
108 | 108 | |
109 | 109 | protected function _name_stop() |
110 | 110 | { |
111 | - return '<p>' . __('View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
112 | - 'event_espresso') . '</p>'; |
|
111 | + return '<p>'.__('View available questions groups. You can reorder your questions by dragging and dropping them.', |
|
112 | + 'event_espresso').'</p>'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | protected function _description_stop() |
116 | 116 | { |
117 | - return '<p>' . __('View the question group description.', 'event_espresso') . '</p>'; |
|
117 | + return '<p>'.__('View the question group description.', 'event_espresso').'</p>'; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | protected function _show_group_name_stop() |
121 | 121 | { |
122 | - return '<p>' . __('View if the name of the question group should be shown to customers.', |
|
123 | - 'event_espresso') . '</p>'; |
|
122 | + return '<p>'.__('View if the name of the question group should be shown to customers.', |
|
123 | + 'event_espresso').'</p>'; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | protected function _show_group_description_stop() |
127 | 127 | { |
128 | - return '<p>' . __('View if the description of the question group should be shown to customers.', |
|
129 | - 'event_espresso') . '</p>'; |
|
128 | + return '<p>'.__('View if the description of the question group should be shown to customers.', |
|
129 | + 'event_espresso').'</p>'; |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | protected function _bulk_actions_stop() |
133 | 133 | { |
134 | - return '<p>' . __('Perform bulk actions to multiple question groups.', 'event_espresso') . '</p>'; |
|
134 | + return '<p>'.__('Perform bulk actions to multiple question groups.', 'event_espresso').'</p>'; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | protected function _search_stop() |
138 | 138 | { |
139 | - return '<p>' . __('Search through questions. The following sources will be searched: question group name and question group description.', |
|
140 | - 'event_espresso') . '</p>'; |
|
139 | + return '<p>'.__('Search through questions. The following sources will be searched: question group name and question group description.', |
|
140 | + 'event_espresso').'</p>'; |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | protected function _add_new_question_group_stop() |
144 | 144 | { |
145 | - return '<p>' . __('Click here to create a new question group.', 'event_espresso') . '</p>'; |
|
145 | + return '<p>'.__('Click here to create a new question group.', 'event_espresso').'</p>'; |
|
146 | 146 | } |
147 | 147 | } |
148 | 148 | \ No newline at end of file |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
3 | - exit('NO direct script access allowed'); |
|
3 | + exit('NO direct script access allowed'); |
|
4 | 4 | } |
5 | 5 | |
6 | 6 | /** |
@@ -18,121 +18,121 @@ discard block |
||
18 | 18 | class Your_Organization_Help_Tour extends EE_Help_Tour |
19 | 19 | { |
20 | 20 | |
21 | - protected function _set_tour_properties() |
|
22 | - { |
|
23 | - $this->_label = __('Your Organization Tour', 'event_espresso'); |
|
24 | - $this->_slug = 'your-organization-joyride'; |
|
25 | - } |
|
21 | + protected function _set_tour_properties() |
|
22 | + { |
|
23 | + $this->_label = __('Your Organization Tour', 'event_espresso'); |
|
24 | + $this->_slug = 'your-organization-joyride'; |
|
25 | + } |
|
26 | 26 | |
27 | 27 | |
28 | - protected function _set_tour_stops() |
|
29 | - { |
|
30 | - $this->_stops = array( |
|
31 | - 10 => array( |
|
32 | - 'content' => $this->_start(), |
|
33 | - ), |
|
34 | - 30 => array( |
|
35 | - 'id' => 'contact_info_h4', |
|
36 | - 'content' => $this->_contact_information_stop(), |
|
37 | - 'options' => array( |
|
38 | - 'tipLocation' => 'left', |
|
39 | - 'tipAdjustmentY' => -50, |
|
40 | - 'tipAdjustmentX' => 15 |
|
41 | - ) |
|
42 | - ), |
|
43 | - 40 => array( |
|
44 | - 'id' => 'upload_image', |
|
45 | - 'content' => $this->_upload_image_stop(), |
|
46 | - 'options' => array( |
|
47 | - 'tipLocation' => 'right', |
|
48 | - 'tipAdjustmentY' => -50, |
|
49 | - 'tipAdjustmentX' => 15 |
|
50 | - ) |
|
51 | - ), |
|
52 | - 50 => array( |
|
53 | - 'id' => 'organization_facebook', |
|
54 | - 'content' => $this->_organization_facebook_stop(), |
|
55 | - 'options' => array( |
|
56 | - 'tipLocation' => 'right', |
|
57 | - 'tipAdjustmentY' => -50, |
|
58 | - 'tipAdjustmentX' => 15 |
|
59 | - ) |
|
60 | - ), |
|
61 | - 60 => array( |
|
62 | - 'id' => 'ueip_optin', |
|
63 | - 'content' => $this->_ueip_option_stop(), |
|
64 | - 'options' => array( |
|
65 | - 'tipLocation' => 'right', |
|
66 | - 'tipAdjustmentY' => -50, |
|
67 | - 'tipAdjustmentX' => 15 |
|
68 | - ) |
|
69 | - ), |
|
70 | - 70 => array( |
|
71 | - 'id' => 'espresso_major_buttons_wrapper', |
|
72 | - 'content' => $this->_end_tour_stop(), |
|
73 | - 'options' => array( |
|
74 | - 'tipLocation' => 'right', |
|
75 | - 'tipAdjustmentY' => -50, |
|
76 | - 'tipAdjustmentX' => 185 |
|
77 | - ) |
|
78 | - ) |
|
79 | - ); |
|
28 | + protected function _set_tour_stops() |
|
29 | + { |
|
30 | + $this->_stops = array( |
|
31 | + 10 => array( |
|
32 | + 'content' => $this->_start(), |
|
33 | + ), |
|
34 | + 30 => array( |
|
35 | + 'id' => 'contact_info_h4', |
|
36 | + 'content' => $this->_contact_information_stop(), |
|
37 | + 'options' => array( |
|
38 | + 'tipLocation' => 'left', |
|
39 | + 'tipAdjustmentY' => -50, |
|
40 | + 'tipAdjustmentX' => 15 |
|
41 | + ) |
|
42 | + ), |
|
43 | + 40 => array( |
|
44 | + 'id' => 'upload_image', |
|
45 | + 'content' => $this->_upload_image_stop(), |
|
46 | + 'options' => array( |
|
47 | + 'tipLocation' => 'right', |
|
48 | + 'tipAdjustmentY' => -50, |
|
49 | + 'tipAdjustmentX' => 15 |
|
50 | + ) |
|
51 | + ), |
|
52 | + 50 => array( |
|
53 | + 'id' => 'organization_facebook', |
|
54 | + 'content' => $this->_organization_facebook_stop(), |
|
55 | + 'options' => array( |
|
56 | + 'tipLocation' => 'right', |
|
57 | + 'tipAdjustmentY' => -50, |
|
58 | + 'tipAdjustmentX' => 15 |
|
59 | + ) |
|
60 | + ), |
|
61 | + 60 => array( |
|
62 | + 'id' => 'ueip_optin', |
|
63 | + 'content' => $this->_ueip_option_stop(), |
|
64 | + 'options' => array( |
|
65 | + 'tipLocation' => 'right', |
|
66 | + 'tipAdjustmentY' => -50, |
|
67 | + 'tipAdjustmentX' => 15 |
|
68 | + ) |
|
69 | + ), |
|
70 | + 70 => array( |
|
71 | + 'id' => 'espresso_major_buttons_wrapper', |
|
72 | + 'content' => $this->_end_tour_stop(), |
|
73 | + 'options' => array( |
|
74 | + 'tipLocation' => 'right', |
|
75 | + 'tipAdjustmentY' => -50, |
|
76 | + 'tipAdjustmentX' => 185 |
|
77 | + ) |
|
78 | + ) |
|
79 | + ); |
|
80 | 80 | |
81 | - if (is_main_site()) { |
|
82 | - $this->_stops[20] = array( |
|
83 | - 'id' => 'site_license_key', |
|
84 | - 'content' => $this->_site_license_key_stop(), |
|
85 | - 'options' => array( |
|
86 | - 'tipLocation' => 'right', |
|
87 | - 'tipAdjustmentY' => -50, |
|
88 | - 'tipAdjustmentX' => 15 |
|
89 | - ) |
|
90 | - ); |
|
91 | - } |
|
92 | - ksort( $this->_stops ); |
|
93 | - } |
|
81 | + if (is_main_site()) { |
|
82 | + $this->_stops[20] = array( |
|
83 | + 'id' => 'site_license_key', |
|
84 | + 'content' => $this->_site_license_key_stop(), |
|
85 | + 'options' => array( |
|
86 | + 'tipLocation' => 'right', |
|
87 | + 'tipAdjustmentY' => -50, |
|
88 | + 'tipAdjustmentX' => 15 |
|
89 | + ) |
|
90 | + ); |
|
91 | + } |
|
92 | + ksort( $this->_stops ); |
|
93 | + } |
|
94 | 94 | |
95 | 95 | |
96 | - protected function _start() |
|
97 | - { |
|
98 | - $content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>'; |
|
99 | - $content .= '<p>' . __('This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | - 'event_espresso') . '</p>'; |
|
96 | + protected function _start() |
|
97 | + { |
|
98 | + $content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>'; |
|
99 | + $content .= '<p>' . __('This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | + 'event_espresso') . '</p>'; |
|
101 | 101 | |
102 | - return $content; |
|
103 | - } |
|
102 | + return $content; |
|
103 | + } |
|
104 | 104 | |
105 | - protected function _site_license_key_stop() |
|
106 | - { |
|
107 | - return '<p>' . __('Enter your support license key here to enable one-click updates.', |
|
108 | - 'event_espresso') . '</p>'; |
|
109 | - } |
|
105 | + protected function _site_license_key_stop() |
|
106 | + { |
|
107 | + return '<p>' . __('Enter your support license key here to enable one-click updates.', |
|
108 | + 'event_espresso') . '</p>'; |
|
109 | + } |
|
110 | 110 | |
111 | - protected function _contact_information_stop() |
|
112 | - { |
|
113 | - return '<p>' . __('You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
|
114 | - 'event_espresso') . '</p>'; |
|
115 | - } |
|
111 | + protected function _contact_information_stop() |
|
112 | + { |
|
113 | + return '<p>' . __('You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
|
114 | + 'event_espresso') . '</p>'; |
|
115 | + } |
|
116 | 116 | |
117 | - protected function _upload_image_stop() |
|
118 | - { |
|
119 | - return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>'; |
|
120 | - } |
|
117 | + protected function _upload_image_stop() |
|
118 | + { |
|
119 | + return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>'; |
|
120 | + } |
|
121 | 121 | |
122 | - protected function _organization_facebook_stop() |
|
123 | - { |
|
124 | - return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>'; |
|
125 | - } |
|
122 | + protected function _organization_facebook_stop() |
|
123 | + { |
|
124 | + return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>'; |
|
125 | + } |
|
126 | 126 | |
127 | - protected function _ueip_option_stop() |
|
128 | - { |
|
129 | - return '<p>' . __('Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
|
130 | - 'event_espresso') . '</p>'; |
|
131 | - } |
|
127 | + protected function _ueip_option_stop() |
|
128 | + { |
|
129 | + return '<p>' . __('Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
|
130 | + 'event_espresso') . '</p>'; |
|
131 | + } |
|
132 | 132 | |
133 | - protected function _end_tour_stop() |
|
134 | - { |
|
135 | - return '<p>' . __('You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
|
136 | - 'event_espresso') . '</p>'; |
|
137 | - } |
|
133 | + protected function _end_tour_stop() |
|
134 | + { |
|
135 | + return '<p>' . __('You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
|
136 | + 'event_espresso') . '</p>'; |
|
137 | + } |
|
138 | 138 | } |
139 | 139 | \ No newline at end of file |
@@ -89,50 +89,50 @@ |
||
89 | 89 | ) |
90 | 90 | ); |
91 | 91 | } |
92 | - ksort( $this->_stops ); |
|
92 | + ksort($this->_stops); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | |
96 | 96 | protected function _start() |
97 | 97 | { |
98 | - $content = '<h3>' . __('Organization Settings', 'event_espresso') . '</h3>'; |
|
99 | - $content .= '<p>' . __('This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | - 'event_espresso') . '</p>'; |
|
98 | + $content = '<h3>'.__('Organization Settings', 'event_espresso').'</h3>'; |
|
99 | + $content .= '<p>'.__('This tour of the Your Organization page will go over different areas of the screen to help you understand what they are used for.', |
|
100 | + 'event_espresso').'</p>'; |
|
101 | 101 | |
102 | 102 | return $content; |
103 | 103 | } |
104 | 104 | |
105 | 105 | protected function _site_license_key_stop() |
106 | 106 | { |
107 | - return '<p>' . __('Enter your support license key here to enable one-click updates.', |
|
108 | - 'event_espresso') . '</p>'; |
|
107 | + return '<p>'.__('Enter your support license key here to enable one-click updates.', |
|
108 | + 'event_espresso').'</p>'; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | protected function _contact_information_stop() |
112 | 112 | { |
113 | - return '<p>' . __('You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
|
114 | - 'event_espresso') . '</p>'; |
|
113 | + return '<p>'.__('You can change your business / organization information below. Be sure to keep this information updated as it is used in other areas of the site. Adjusting the country option here will update your currency settings. More options are available in the Countries tab.', |
|
114 | + 'event_espresso').'</p>'; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | protected function _upload_image_stop() |
118 | 118 | { |
119 | - return '<p>' . __('Add a logo. This can be used for invoices and tickets.', 'event_espresso') . '</p>'; |
|
119 | + return '<p>'.__('Add a logo. This can be used for invoices and tickets.', 'event_espresso').'</p>'; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | protected function _organization_facebook_stop() |
123 | 123 | { |
124 | - return '<p>' . __('Add links to various social media networks.', 'event_espresso') . '</p>'; |
|
124 | + return '<p>'.__('Add links to various social media networks.', 'event_espresso').'</p>'; |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | protected function _ueip_option_stop() |
128 | 128 | { |
129 | - return '<p>' . __('Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
|
130 | - 'event_espresso') . '</p>'; |
|
129 | + return '<p>'.__('Help us to help you! Sign up to the User eXperience Improvement Program and send us anonymous data that will help us improve Event Espresso.', |
|
130 | + 'event_espresso').'</p>'; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | protected function _end_tour_stop() |
134 | 134 | { |
135 | - return '<p>' . __('You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
|
136 | - 'event_espresso') . '</p>'; |
|
135 | + return '<p>'.__('You are almost done updating Your Organization information. Click on the Save button to save changes and then go to the Payment Methods screen so you can setup a payment gateway.', |
|
136 | + 'event_espresso').'</p>'; |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | \ No newline at end of file |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | <span class="dashicons dashicons-admin-tools"></span> |
27 | 27 | <?php esc_html_e("Migration Options", "event_espresso"); ?> |
28 | 28 | <span class="tiny-text lt-grey-text"> <?php esc_html_e(' to migrate or not to migrate?', |
29 | - "event_espresso"); ?></span> |
|
29 | + "event_espresso"); ?></span> |
|
30 | 30 | </h2> |
31 | 31 | <div class="ee-table-wrap"> |
32 | 32 | <table> |
@@ -35,24 +35,24 @@ discard block |
||
35 | 35 | <td><h3><?php esc_html_e('1', 'event_espresso'); ?></h3></td> |
36 | 36 | <td> |
37 | 37 | <?php |
38 | - echo apply_filters( |
|
39 | - 'FHEE__ee_migration_page__option_1_main', |
|
40 | - sprintf( |
|
41 | - esc_html__('%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.', |
|
42 | - "event_espresso"), |
|
43 | - '<strong>', |
|
44 | - '</strong>', |
|
45 | - '<a id="migration-risks" class="" title="' |
|
46 | - . esc_attr__('click for more details', "event_espresso") |
|
47 | - . '">', |
|
48 | - '</a>', |
|
49 | - $current_db_state, |
|
50 | - $next_db_state |
|
51 | - ), |
|
52 | - $current_db_state, |
|
53 | - $next_db_state |
|
54 | - ); |
|
55 | - ?> |
|
38 | + echo apply_filters( |
|
39 | + 'FHEE__ee_migration_page__option_1_main', |
|
40 | + sprintf( |
|
41 | + esc_html__('%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.', |
|
42 | + "event_espresso"), |
|
43 | + '<strong>', |
|
44 | + '</strong>', |
|
45 | + '<a id="migration-risks" class="" title="' |
|
46 | + . esc_attr__('click for more details', "event_espresso") |
|
47 | + . '">', |
|
48 | + '</a>', |
|
49 | + $current_db_state, |
|
50 | + $next_db_state |
|
51 | + ), |
|
52 | + $current_db_state, |
|
53 | + $next_db_state |
|
54 | + ); |
|
55 | + ?> |
|
56 | 56 | <a id="display-migration-details" |
57 | 57 | class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" |
58 | 58 | rel="migration-details"><?php esc_html_e('click for more details', "event_espresso"); ?> |
@@ -61,37 +61,37 @@ discard block |
||
61 | 61 | class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js" |
62 | 62 | rel="migration-details" |
63 | 63 | style="display:none;"><?php echo sprintf(esc_html__('hide%1$sdetails%1$s-', |
64 | - 'event_espresso'), ' '); ?></a> |
|
64 | + 'event_espresso'), ' '); ?></a> |
|
65 | 65 | </td> |
66 | 66 | <td> |
67 | 67 | <a id="db-backed-up" |
68 | 68 | class="toggle-migration-monitor button-primary"><?php echo apply_filters('FHEE__ee_migration_page__option_1_button_text', |
69 | - sprintf(esc_html__("Migrate My %s Data to %s", "event_espresso"), $current_db_state, |
|
70 | - $next_db_state), $current_db_state, $next_db_state); ?></a> |
|
69 | + sprintf(esc_html__("Migrate My %s Data to %s", "event_espresso"), $current_db_state, |
|
70 | + $next_db_state), $current_db_state, $next_db_state); ?></a> |
|
71 | 71 | </td> |
72 | 72 | </tr> |
73 | 73 | <tr> |
74 | 74 | <td colspan="3" style="padding: 0"> |
75 | 75 | <div id="migration-details-dv" style="display: none; padding: 1em;"> |
76 | 76 | <span class="reminder-spn"><?php printf(esc_html__("%s Important: %s Before migrating, please back up your database and files.", |
77 | - "event_espresso"), "<b>", "</b>"); ?></span> |
|
77 | + "event_espresso"), "<b>", "</b>"); ?></span> |
|
78 | 78 | <p> |
79 | 79 | <?php |
80 | - printf( |
|
81 | - esc_html__('%1$sNot sure how to backup your existing data?%2$s Here is %3$sWordPress\'s explanation%7$s, and here\'s %6$sour explanation%7$s.%8$sYou can also search the WordPress plugin database for %4$s database backup plugins %7$s,%8$sor have one of our dedicated support technicians help you by purchasing a %5$sPriority Support Token%7$s.', |
|
82 | - "event_espresso"), |
|
83 | - '<b>', |
|
84 | - '</b>', |
|
85 | - "<a href='http://codex.wordpress.org/Backing_Up_Your_Database'>", |
|
86 | - "<a href='" |
|
87 | - . admin_url('plugin-install.php?tab=search&type=term&s=database+backup&plugin-search-input=Search+Plugins') |
|
88 | - . "'>", |
|
89 | - "<a href='http://eventespresso.com/product/priority-support-tokens/'>", |
|
90 | - '<a href="http://eventespresso.com/wiki/how-to-back-up-your-site/">', |
|
91 | - "</a>", |
|
92 | - '<br/>' |
|
93 | - ); |
|
94 | - ?> |
|
80 | + printf( |
|
81 | + esc_html__('%1$sNot sure how to backup your existing data?%2$s Here is %3$sWordPress\'s explanation%7$s, and here\'s %6$sour explanation%7$s.%8$sYou can also search the WordPress plugin database for %4$s database backup plugins %7$s,%8$sor have one of our dedicated support technicians help you by purchasing a %5$sPriority Support Token%7$s.', |
|
82 | + "event_espresso"), |
|
83 | + '<b>', |
|
84 | + '</b>', |
|
85 | + "<a href='http://codex.wordpress.org/Backing_Up_Your_Database'>", |
|
86 | + "<a href='" |
|
87 | + . admin_url('plugin-install.php?tab=search&type=term&s=database+backup&plugin-search-input=Search+Plugins') |
|
88 | + . "'>", |
|
89 | + "<a href='http://eventespresso.com/product/priority-support-tokens/'>", |
|
90 | + '<a href="http://eventespresso.com/wiki/how-to-back-up-your-site/">', |
|
91 | + "</a>", |
|
92 | + '<br/>' |
|
93 | + ); |
|
94 | + ?> |
|
95 | 95 | </p> |
96 | 96 | <?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?> |
97 | 97 | </div> |
@@ -101,12 +101,12 @@ discard block |
||
101 | 101 | <td><h3><?php esc_html_e('2', 'event_espresso'); ?></h3></td> |
102 | 102 | <td> |
103 | 103 | <?php echo apply_filters('FHEE__ee_migration_page__option_2_main', |
104 | - sprintf(esc_html__('I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', |
|
105 | - "event_espresso"), $current_db_state, $next_db_state, |
|
106 | - $ultimate_db_state), $current_db_state, $next_db_state, |
|
107 | - $ultimate_db_state); ?><br/> |
|
104 | + sprintf(esc_html__('I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.', |
|
105 | + "event_espresso"), $current_db_state, $next_db_state, |
|
106 | + $ultimate_db_state), $current_db_state, $next_db_state, |
|
107 | + $ultimate_db_state); ?><br/> |
|
108 | 108 | <span class="reminder-spn"><?php esc_html_e('Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.', |
109 | - 'event_espresso'); ?></span> |
|
109 | + 'event_espresso'); ?></span> |
|
110 | 110 | <a id="display-no-migration-details" |
111 | 111 | class="display-the-hidden lt-grey-text smaller-text hide-if-no-js" |
112 | 112 | rel="no-migration-details"><?php esc_html_e('click for more details', "event_espresso"); ?> |
@@ -115,13 +115,13 @@ discard block |
||
115 | 115 | class="hide-the-displayed lt-grey-text smaller-text hide-if-no-js" |
116 | 116 | rel="no-migration-details" |
117 | 117 | style="display:none;"><?php echo sprintf(esc_html__('hide%1$sdetails%1$s-', |
118 | - 'event_espresso'), ' '); ?></a> |
|
118 | + 'event_espresso'), ' '); ?></a> |
|
119 | 119 | </td> |
120 | 120 | <td> |
121 | 121 | <a id="do-not-migrate" class="do-not-migrate button-primary" |
122 | 122 | href="<?php echo $reset_db_page_link; ?>"><?php echo apply_filters('FHEE__ee_migration_page__option_2_button_text', |
123 | - sprintf(esc_html__("Just Start %s and Delete Existing Data", "event_espresso"), |
|
124 | - $ultimate_db_state), $ultimate_db_state); ?></a> |
|
123 | + sprintf(esc_html__("Just Start %s and Delete Existing Data", "event_espresso"), |
|
124 | + $ultimate_db_state), $ultimate_db_state); ?></a> |
|
125 | 125 | </td> |
126 | 126 | </tr> |
127 | 127 | <tr> |
@@ -129,8 +129,8 @@ discard block |
||
129 | 129 | <div id="no-migration-details-dv" style="display: none; padding: 1em;"> |
130 | 130 | <p> |
131 | 131 | <?php echo apply_filters('FHEE__ee_migration_page__option_2_details', |
132 | - sprintf(esc_html__("If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", |
|
133 | - "event_espresso"), $ultimate_db_state), $ultimate_db_state); ?> |
|
132 | + sprintf(esc_html__("If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.", |
|
133 | + "event_espresso"), $ultimate_db_state), $ultimate_db_state); ?> |
|
134 | 134 | </p> |
135 | 135 | </div> |
136 | 136 | </td> |
@@ -5,39 +5,39 @@ discard block |
||
5 | 5 | /** @type string $reset_db_action_url */ |
6 | 6 | /** @type EE_Data_Migration_Script_Base $most_recent_migration */ |
7 | 7 | ?> |
8 | -<?php if ( $success ) { ?> |
|
9 | - <h1><?php _e( "Database Update Crash Report Sent", "event_espresso" ); ?></h1> |
|
10 | - <p><?php _e( "A crash report email was sent to Event Espresso. You should hear back from us soon.", "event_espresso" ); ?></p> |
|
8 | +<?php if ($success) { ?> |
|
9 | + <h1><?php _e("Database Update Crash Report Sent", "event_espresso"); ?></h1> |
|
10 | + <p><?php _e("A crash report email was sent to Event Espresso. You should hear back from us soon.", "event_espresso"); ?></p> |
|
11 | 11 | <?php } else {//didn't send email properly ?> |
12 | - <h1><?php _e( "Migration Report not sent", "event_espresso" ); ?></h1> |
|
13 | - <p><?php _e( "An error occurred and we were not able to automatically send a report to Event Espresso support.", "event_espresso" ); ?></p> |
|
14 | - <p><?php printf( esc_html__( "Please copy-and-paste the system information below to %s", "event_espresso" ), '<a href="mailto:' . EE_SUPPORT_EMAIL . '">' .EE_SUPPORT_EMAIL . "</a>" ); ?></p> |
|
12 | + <h1><?php _e("Migration Report not sent", "event_espresso"); ?></h1> |
|
13 | + <p><?php _e("An error occurred and we were not able to automatically send a report to Event Espresso support.", "event_espresso"); ?></p> |
|
14 | + <p><?php printf(esc_html__("Please copy-and-paste the system information below to %s", "event_espresso"), '<a href="mailto:'.EE_SUPPORT_EMAIL.'">'.EE_SUPPORT_EMAIL."</a>"); ?></p> |
|
15 | 15 | <label> |
16 | - <?php _e( "system status info", "event_espresso" ); ?> |
|
17 | - <textarea name="system_status_info" class="system_status_info"><?php print_r( EEM_System_Status::instance()->get_system_stati() ); ?></textarea> |
|
16 | + <?php _e("system status info", "event_espresso"); ?> |
|
17 | + <textarea name="system_status_info" class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati()); ?></textarea> |
|
18 | 18 | </label> |
19 | 19 | <?php } ?> |
20 | 20 | |
21 | 21 | |
22 | -<h1><?php _e( "What's next?", 'event_espresso' ); ?></h1> |
|
23 | -<p><?php _e( "Well, it depends on your situation:", 'event_espresso' ); ?></p> |
|
22 | +<h1><?php _e("What's next?", 'event_espresso'); ?></h1> |
|
23 | +<p><?php _e("Well, it depends on your situation:", 'event_espresso'); ?></p> |
|
24 | 24 | <div class='ee-table-wrap'> |
25 | 25 | <table> |
26 | 26 | <thead> |
27 | 27 | <tr> |
28 | - <th><?php _e( "Your Situation", 'event_espresso' ); ?></th> |
|
29 | - <th><?php _e( "Suggested Action", 'event_espresso' ); ?></th> |
|
28 | + <th><?php _e("Your Situation", 'event_espresso'); ?></th> |
|
29 | + <th><?php _e("Suggested Action", 'event_espresso'); ?></th> |
|
30 | 30 | </tr> |
31 | 31 | </thead> |
32 | 32 | <tbody> |
33 | 33 | <tr> |
34 | - <td><p class='big-text'><?php _e( "I want to retry migrating my data", 'event_espresso' ); ?></p></td> |
|
34 | + <td><p class='big-text'><?php _e("I want to retry migrating my data", 'event_espresso'); ?></p></td> |
|
35 | 35 | <td> |
36 | 36 | <p> |
37 | 37 | <?php |
38 | 38 | printf( |
39 | - esc_html__( 'First, %1$s check the forums %2$s to see if there is a solution before re-attempting the Database Update. Often it helps to deactivate other plugins which may have conflicts; or it may help to add %3$s to your %4$s wp-config.php%5$s (which will make the update run slower, but may resolve any memory exhaustion errors.', 'event_espresso' ), |
|
40 | - "<a href='" . EE_SUPPORT_EMAIL . "' target='_blank'>", |
|
39 | + esc_html__('First, %1$s check the forums %2$s to see if there is a solution before re-attempting the Database Update. Often it helps to deactivate other plugins which may have conflicts; or it may help to add %3$s to your %4$s wp-config.php%5$s (which will make the update run slower, but may resolve any memory exhaustion errors.', 'event_espresso'), |
|
40 | + "<a href='".EE_SUPPORT_EMAIL."' target='_blank'>", |
|
41 | 41 | '</a>', |
42 | 42 | '<pre lang="php">define( EE_MIGRATION_STEP_SIZE, 10 );</pre>', |
43 | 43 | '<b>', |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | <p> |
50 | 50 | <?php |
51 | 51 | printf( |
52 | - esc_html__( 'To retry updating your data: restore to the backup you made before the update and reactivate EE (and any addons you are using) and re-run the Database Update. If you did not make a database backup and are migrating from EE3: delete your EE4 data (use the %1$s Reset/Delete Data tab above%2$s), and then reactivate EE4, and then re-run the migration and updates. If you did not make a database backup, are only updating from a previous install of EE4, have found a solution to the fatal error you received, and are willing to possibly have some data lost, %3$sattempt to continue migrating%2$s.', 'event_espresso' ), |
|
52 | + esc_html__('To retry updating your data: restore to the backup you made before the update and reactivate EE (and any addons you are using) and re-run the Database Update. If you did not make a database backup and are migrating from EE3: delete your EE4 data (use the %1$s Reset/Delete Data tab above%2$s), and then reactivate EE4, and then re-run the migration and updates. If you did not make a database backup, are only updating from a previous install of EE4, have found a solution to the fatal error you received, and are willing to possibly have some data lost, %3$sattempt to continue migrating%2$s.', 'event_espresso'), |
|
53 | 53 | "<a href='$reset_db_page_url'>", |
54 | 54 | "</a>", |
55 | 55 | "<a class='button-primary' href='$reattempt_action_url'>" |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | </tr> |
61 | 61 | <tr> |
62 | 62 | <td> |
63 | - <p class='big-text'><?php _e( "I want to hear from Support before proceeding", 'event_espresso' ); ?></p> |
|
63 | + <p class='big-text'><?php _e("I want to hear from Support before proceeding", 'event_espresso'); ?></p> |
|
64 | 64 | </td> |
65 | 65 | <td> |
66 | 66 | <?php |
67 | 67 | printf( |
68 | - esc_html__( 'Just make sure you\'ve %1$s checked for a solution in the forums,%2$s and properly contacted Support. We will get back to you as soon as possible', 'event_espresso' ), |
|
69 | - "<a href='" . EE_SUPPORT_EMAIL . "'>", |
|
68 | + esc_html__('Just make sure you\'ve %1$s checked for a solution in the forums,%2$s and properly contacted Support. We will get back to you as soon as possible', 'event_espresso'), |
|
69 | + "<a href='".EE_SUPPORT_EMAIL."'>", |
|
70 | 70 | "</a>" |
71 | 71 | ); |
72 | 72 | ?> |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | </tr> |
75 | 75 | <tr> |
76 | 76 | <td> |
77 | - <p class='big-text'><?php printf( esc_html__( 'I don\'t need my old EE %s data', 'event_espresso' ), $most_recent_migration->slug() ); ?></p> |
|
77 | + <p class='big-text'><?php printf(esc_html__('I don\'t need my old EE %s data', 'event_espresso'), $most_recent_migration->slug()); ?></p> |
|
78 | 78 | </td> |
79 | 79 | <td> |
80 | 80 | <?php |
81 | 81 | printf( |
82 | - esc_html__( 'If you are ok with losing all the EE %1$s data, you can skip the Database Updates and %2$s use EE4 with only default Data%3$s', 'event_espresso' ), |
|
82 | + esc_html__('If you are ok with losing all the EE %1$s data, you can skip the Database Updates and %2$s use EE4 with only default Data%3$s', 'event_espresso'), |
|
83 | 83 | $most_recent_migration->slug(), |
84 | 84 | "<a id='do-not-migrate' class='do-not-migrate button-primary' href='$reset_db_action_url'>", |
85 | 85 | "</a>" |
@@ -89,20 +89,20 @@ discard block |
||
89 | 89 | </tr> |
90 | 90 | <tr> |
91 | 91 | <td> |
92 | - <p class='big-text'><?php printf( esc_html__( 'I want to go back to my old version of EE %1$s', 'event_espresso' ), $most_recent_migration->slug() ); ?> |
|
92 | + <p class='big-text'><?php printf(esc_html__('I want to go back to my old version of EE %1$s', 'event_espresso'), $most_recent_migration->slug()); ?> |
|
93 | 93 | </td> |
94 | 94 | <td> |
95 | 95 | <p> |
96 | 96 | <?php |
97 | 97 | printf( |
98 | - esc_html__( 'Then we suggest you re-activate the old version of EE %3$s and restore your database to the backup you made just before the Database Update . If you didn\'t backup your database and are migrating from EE3, you can also delete your EE4 data (use on the %1$s"Reset/Delete Data" tab above%2$s), and then reactivate EE3 from the plugins page. Note: some of your EE3 shortcodes may have been changed to their EE4 equivalents, so you will need to change them back.', 'event_espresso' ), |
|
98 | + esc_html__('Then we suggest you re-activate the old version of EE %3$s and restore your database to the backup you made just before the Database Update . If you didn\'t backup your database and are migrating from EE3, you can also delete your EE4 data (use on the %1$s"Reset/Delete Data" tab above%2$s), and then reactivate EE3 from the plugins page. Note: some of your EE3 shortcodes may have been changed to their EE4 equivalents, so you will need to change them back.', 'event_espresso'), |
|
99 | 99 | "<a href='$reset_db_page_url'>", |
100 | 100 | "</a>", |
101 | 101 | $most_recent_migration->slug() |
102 | 102 | ); |
103 | 103 | ?> |
104 | 104 | </p> |
105 | - <p><?php _e( "If you ever decide to re-attempt using EE4, you will again be given the option to migrate your EE3 data or not.", 'event_espresso' ); ?></p> |
|
105 | + <p><?php _e("If you ever decide to re-attempt using EE4, you will again be given the option to migrate your EE3 data or not.", 'event_espresso'); ?></p> |
|
106 | 106 | </td> |
107 | 107 | </tr> |
108 | 108 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | ?> |
4 | -<h1><?php esc_html_e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso");?></h1> |
|
5 | -<p><?php printf(esc_html__("Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.", "event_espresso"), "<a href='".admin_url('/plugins.php')."'>","</a>");?></p> |
|
6 | -<p><?php esc_html_e("You can also deactivate the addons, but all of their data will be lost when your database is migrated", "event_espresso");?></p> |
|
7 | 4 | \ No newline at end of file |
5 | +<h1><?php esc_html_e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso"); ?></h1> |
|
6 | +<p><?php printf(esc_html__("Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.", "event_espresso"), "<a href='".admin_url('/plugins.php')."'>", "</a>"); ?></p> |
|
7 | +<p><?php esc_html_e("You can also deactivate the addons, but all of their data will be lost when your database is migrated", "event_espresso"); ?></p> |
|
8 | 8 | \ No newline at end of file |
@@ -28,29 +28,29 @@ discard block |
||
28 | 28 | <h3 class="espresso-header"> |
29 | 29 | <span class="dashicons dashicons-flag ee-icon-size-22"></span> |
30 | 30 | <?php |
31 | - echo apply_filters( |
|
32 | - 'FHEE__ee_migration_page__header', |
|
33 | - sprintf( |
|
34 | - esc_html__("Your Event Espresso data needs to be updated.", "event_espresso"), |
|
35 | - $current_db_state, |
|
36 | - $next_db_state |
|
37 | - ), |
|
38 | - $current_db_state, |
|
39 | - $next_db_state |
|
40 | - ); |
|
41 | - ?> |
|
31 | + echo apply_filters( |
|
32 | + 'FHEE__ee_migration_page__header', |
|
33 | + sprintf( |
|
34 | + esc_html__("Your Event Espresso data needs to be updated.", "event_espresso"), |
|
35 | + $current_db_state, |
|
36 | + $next_db_state |
|
37 | + ), |
|
38 | + $current_db_state, |
|
39 | + $next_db_state |
|
40 | + ); |
|
41 | + ?> |
|
42 | 42 | </h3> |
43 | 43 | <?php } elseif ($show_most_recent_migration) { ?> |
44 | 44 | <h3 class="espresso-header"> |
45 | 45 | <span class="dashicons dashicons-awards ee-icon-size-22"></span> |
46 | 46 | <?php echo apply_filters('FHEE__ee_migration_page__done_migration_header', |
47 | - sprintf(esc_html__('Congratulations! Your database is "up-to-date" and you are ready to begin using %s', |
|
48 | - "event_espresso"), $ultimate_db_state)); ?> |
|
47 | + sprintf(esc_html__('Congratulations! Your database is "up-to-date" and you are ready to begin using %s', |
|
48 | + "event_espresso"), $ultimate_db_state)); ?> |
|
49 | 49 | </h3> |
50 | 50 | <p> |
51 | 51 | <?php echo apply_filters('FHEE__ee_migration_page__p_after_done_migration_header', |
52 | - sprintf(esc_html__("Time to find out about all the great new features %s has to offer.", |
|
53 | - "event_espresso"), $ultimate_db_state)); ?> |
|
52 | + sprintf(esc_html__("Time to find out about all the great new features %s has to offer.", |
|
53 | + "event_espresso"), $ultimate_db_state)); ?> |
|
54 | 54 | <b><a id="get-started-after-migrate" class="button-primary" |
55 | 55 | href="<?php echo add_query_arg(array('page' => 'espresso_about'), admin_url('admin.php')); ?>"> |
56 | 56 | <?php esc_html_e("Let's Get Started", "event_espresso"); ?> <span |
@@ -61,34 +61,34 @@ discard block |
||
61 | 61 | |
62 | 62 | |
63 | 63 | <?php if ($show_backup_db_text) { |
64 | - echo $migration_options_html; |
|
65 | - } ?> |
|
64 | + echo $migration_options_html; |
|
65 | + } ?> |
|
66 | 66 | |
67 | 67 | <?php |
68 | - if ($show_most_recent_migration) { |
|
69 | - if ($most_recent_migration && $most_recent_migration instanceof EE_Data_Migration_Script_Base) { |
|
70 | - if ($most_recent_migration->can_continue()) { |
|
71 | - //tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?> |
|
68 | + if ($show_most_recent_migration) { |
|
69 | + if ($most_recent_migration && $most_recent_migration instanceof EE_Data_Migration_Script_Base) { |
|
70 | + if ($most_recent_migration->can_continue()) { |
|
71 | + //tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?> |
|
72 | 72 | <h3 class="espresso-header"> |
73 | 73 | <span class="dashicons dashicons-star-half ee-icon-size-22"></span> |
74 | 74 | <?php printf(esc_html__("It appears that your previous Database Update (%s) is incomplete, and should be resumed", |
75 | - "event_espresso"), $most_recent_migration->pretty_name()); ?> |
|
75 | + "event_espresso"), $most_recent_migration->pretty_name()); ?> |
|
76 | 76 | </h3> |
77 | 77 | <?php } elseif ($most_recent_migration->is_broken()) { |
78 | - //tell the user the migration failed and they should notify EE?> |
|
78 | + //tell the user the migration failed and they should notify EE?> |
|
79 | 79 | <h3 class="espresso-header"> |
80 | 80 | <span class="dashicons dashicons-no ee-icon-size-22"></span> |
81 | 81 | <?php echo $most_recent_migration->get_feedback_message() ?> |
82 | 82 | </h3> |
83 | 83 | <?php } |
84 | - //display errors or not of the most recent migration ran |
|
85 | - if ($most_recent_migration->get_errors()) { ?> |
|
84 | + //display errors or not of the most recent migration ran |
|
85 | + if ($most_recent_migration->get_errors()) { ?> |
|
86 | 86 | <div class="ee-attention"> |
87 | 87 | <strong><?php printf(esc_html__("Warnings occurred during your last Database Update (%s):", |
88 | - 'event_espresso'), |
|
89 | - $most_recent_migration->pretty_name()) ?></strong> |
|
88 | + 'event_espresso'), |
|
89 | + $most_recent_migration->pretty_name()) ?></strong> |
|
90 | 90 | <a id="show-hide-migration-warnings" class="display-the-hidden"><?php esc_html_e("Show Warnings", |
91 | - 'event_espresso'); ?></a> |
|
91 | + 'event_espresso'); ?></a> |
|
92 | 92 | <ul class="migration-warnings" style="display:none"> |
93 | 93 | <?php foreach ($most_recent_migration->get_errors() as $error) { ?> |
94 | 94 | <li><?php echo htmlentities($error) ?></li> |
@@ -96,15 +96,15 @@ discard block |
||
96 | 96 | </ul> |
97 | 97 | </div> |
98 | 98 | <?php } else { |
99 | - //there were no errors during the last migration, just say so?> |
|
99 | + //there were no errors during the last migration, just say so?> |
|
100 | 100 | <h2><?php printf(esc_html__("The last Database Update (%s) ran successfully without errors.", |
101 | - "event_espresso"), $most_recent_migration->pretty_name()) ?></h2> |
|
101 | + "event_espresso"), $most_recent_migration->pretty_name()) ?></h2> |
|
102 | 102 | <?php } |
103 | - } else { |
|
104 | - } |
|
105 | - } |
|
106 | - // end of: if ( $show_most_recent_migration ) |
|
107 | - ?> |
|
103 | + } else { |
|
104 | + } |
|
105 | + } |
|
106 | + // end of: if ( $show_most_recent_migration ) |
|
107 | + ?> |
|
108 | 108 | |
109 | 109 | </div> |
110 | 110 | <!--end of #migration-prep--> |
@@ -124,12 +124,12 @@ discard block |
||
124 | 124 | <div id='progress-area'> |
125 | 125 | <h3 class="espresso-header"> |
126 | 126 | <?php |
127 | - echo sprintf(_n( |
|
128 | - "The following task needs to be performed:", |
|
129 | - "The following %s tasks need to be performed:", |
|
130 | - count($script_names), |
|
131 | - "event_espresso" |
|
132 | - ), count($script_names)); ?> |
|
127 | + echo sprintf(_n( |
|
128 | + "The following task needs to be performed:", |
|
129 | + "The following %s tasks need to be performed:", |
|
130 | + count($script_names), |
|
131 | + "event_espresso" |
|
132 | + ), count($script_names)); ?> |
|
133 | 133 | </h3> |
134 | 134 | <ul style="list-style: inside;"> |
135 | 135 | <?php foreach ($script_names as $script_name) { ?> |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | <br/> |
140 | 140 | <?php if (count($script_names) > 1) { ?> |
141 | 141 | <p><?php esc_html_e("Please note: after each task is completed you will need to continue the Database Update, or report an error to Event Espresso.", |
142 | - "event_espresso"); ?></p> |
|
142 | + "event_espresso"); ?></p> |
|
143 | 143 | <?php } ?> |
144 | 144 | |
145 | 145 | <div class="ee-attention"> |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | </span> |
150 | 150 | <br/> |
151 | 151 | <?php esc_html_e("Depending on the number of events and the complexity of the information in your database, this could take a few minutes.", |
152 | - "event_espresso"); ?> |
|
152 | + "event_espresso"); ?> |
|
153 | 153 | </p> |
154 | 154 | <p> |
155 | 155 | <?php printf(esc_html__("%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.", |
156 | - "event_espresso"), '<strong>', '</strong>'); ?> |
|
156 | + "event_espresso"), '<strong>', '</strong>'); ?> |
|
157 | 157 | </p> |
158 | 158 | <p> |
159 | 159 | <?php esc_html_e("Click the button below to begin the migration process.", "event_espresso") ?> |
@@ -169,8 +169,8 @@ discard block |
||
169 | 169 | |
170 | 170 | <button id='start-migration' class='button-primary'> |
171 | 171 | <?php echo $show_continue_current_migration_script ? esc_html__("Continue Database Update", |
172 | - "event_espresso") |
|
173 | - : esc_html__("Begin Database Update", "event_espresso"); ?> |
|
172 | + "event_espresso") |
|
173 | + : esc_html__("Begin Database Update", "event_espresso"); ?> |
|
174 | 174 | </button> |
175 | 175 | <br class="clear"/> |
176 | 176 | |
@@ -186,10 +186,10 @@ discard block |
||
186 | 186 | </div> |
187 | 187 | |
188 | 188 | <?php } |
189 | - if ($show_maintenance_switch) { |
|
190 | - ?> |
|
189 | + if ($show_maintenance_switch) { |
|
190 | + ?> |
|
191 | 191 | <h2><span class="dashicons dashicons-admin-tools"></span><?php esc_html_e('Set Event Espresso Maintenance Mode', |
192 | - 'event_espresso'); ?></h2> |
|
192 | + 'event_espresso'); ?></h2> |
|
193 | 193 | <form method='post' action='<?php echo $update_migration_script_page_link ?>'> |
194 | 194 | <div class="ee-table-wrap"> |
195 | 195 | <table> |
@@ -197,15 +197,15 @@ discard block |
||
197 | 197 | <td width="40px" align="center"> |
198 | 198 | <input type="radio" id="maintenance_mode_level_off" name="maintenance_mode_level" |
199 | 199 | value="0" <?php echo EE_Maintenance_Mode::instance()->level() |
200 | - == EE_Maintenance_Mode::level_0_not_in_maintenance |
|
201 | - ? 'checked="checked"' : '' ?>> |
|
200 | + == EE_Maintenance_Mode::level_0_not_in_maintenance |
|
201 | + ? 'checked="checked"' : '' ?>> |
|
202 | 202 | </td> |
203 | 203 | <th align="left"> |
204 | 204 | <label for="maintenance_mode_level_off"><?php esc_html_e('Maintenance Mode OFF', |
205 | - 'event_espresso'); ?></label> |
|
205 | + 'event_espresso'); ?></label> |
|
206 | 206 | <p class='description' style="font-weight: normal;"> |
207 | 207 | <?php esc_html_e("This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.", |
208 | - "event_espresso"); ?> |
|
208 | + "event_espresso"); ?> |
|
209 | 209 | </p> |
210 | 210 | </th> |
211 | 211 | </tr> |
@@ -213,8 +213,8 @@ discard block |
||
213 | 213 | <td width="40px" align="center"> |
214 | 214 | <input type="radio" id="maintenance_mode_level_on" name="maintenance_mode_level" |
215 | 215 | value="1" <?php echo EE_Maintenance_Mode::instance()->level() |
216 | - == EE_Maintenance_Mode::level_1_frontend_only_maintenance |
|
217 | - ? 'checked="checked"' : '' ?>> |
|
216 | + == EE_Maintenance_Mode::level_1_frontend_only_maintenance |
|
217 | + ? 'checked="checked"' : '' ?>> |
|
218 | 218 | </td> |
219 | 219 | <th align="left"> |
220 | 220 | <label for="maintenance_mode_level_on"> |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | </label> |
223 | 223 | <p class='description' style="font-weight: normal;"> |
224 | 224 | <?php esc_html_e("This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.", |
225 | - "event_espresso"); ?> |
|
225 | + "event_espresso"); ?> |
|
226 | 226 | </p> |
227 | 227 | </th> |
228 | 228 | </tr> |
@@ -234,6 +234,6 @@ discard block |
||
234 | 234 | </p> |
235 | 235 | </form> |
236 | 236 | <?php |
237 | - } ?> |
|
237 | + } ?> |
|
238 | 238 | |
239 | 239 | </div> |
@@ -1,26 +1,26 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | ?> |
4 | -<h1><?php esc_html_e("Data Migration Error", "event_espresso");?></h1> |
|
5 | -<p class='error'><?php printf(esc_html__("Your last Database Update had a %s FATAL ERROR, and CANNOT be continued%s.", "event_espresso"),"<b>","</b>");?></p> |
|
6 | -<a id="show-hide-migration-warnings" class="display-the-hidden"><?php esc_html_e("Show Errors", 'event_espresso');?></a> |
|
4 | +<h1><?php esc_html_e("Data Migration Error", "event_espresso"); ?></h1> |
|
5 | +<p class='error'><?php printf(esc_html__("Your last Database Update had a %s FATAL ERROR, and CANNOT be continued%s.", "event_espresso"), "<b>", "</b>"); ?></p> |
|
6 | +<a id="show-hide-migration-warnings" class="display-the-hidden"><?php esc_html_e("Show Errors", 'event_espresso'); ?></a> |
|
7 | 7 | <ul class="migration-warnings" style="display:none"> |
8 | -<?php foreach($most_recent_migration->get_errors() as $error){ ?> |
|
8 | +<?php foreach ($most_recent_migration->get_errors() as $error) { ?> |
|
9 | 9 | <li style="overflow-y:auto;max-height:100px"><?php echo esc_html($error)?></li> |
10 | 10 | <?php }?> |
11 | 11 | </ul> |
12 | -<h2><?php esc_html_e("Fill out the below form to automatically Send Event Espresso a Crash Report", "event_espresso");?></h2> |
|
13 | -<form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(array('action'=>'send_migration_crash_report'), EE_MAINTENANCE_ADMIN_URL);?>' method='post'> |
|
12 | +<h2><?php esc_html_e("Fill out the below form to automatically Send Event Espresso a Crash Report", "event_espresso"); ?></h2> |
|
13 | +<form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(array('action'=>'send_migration_crash_report'), EE_MAINTENANCE_ADMIN_URL); ?>' method='post'> |
|
14 | 14 | <table class='widefat'> |
15 | - <tr><td><label for='from'><?php esc_html_e("From/Reply-To:", "event_espresso");?></label></td><td><input name='from' id='from' type='text' style="width:200px"value='<?php echo get_bloginfo('admin_email','display'); ?>'></td></tr> |
|
16 | - <tr><td><label for='from_name'><?php esc_html_e("Your Name", "event_espresso");?></label></td><td><input name='from_name' id='from_name' type='text' style="width:200px"value='<?php printf(esc_html__("Admin of %s", "event_espresso"),get_bloginfo('name','display'));?>'></td></tr> |
|
17 | - <tr><td><label for='body'><?php esc_html_e("Comments", "event_espresso");?></label></td><td><textarea name="body" id="body" class='system_status_info'><?php esc_html_e("Enter any comments about why you think the error may have occurred", "event_espresso");?></textarea> |
|
18 | - <p class='description'><?php esc_html_e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso");?></p></td></tr> |
|
19 | - <tr><td colspan="2"><input type="submit" value="<?php esc_html_e("Mail Crash Report to Event Espresso", "event_espresso");?>"/></td></tr> |
|
15 | + <tr><td><label for='from'><?php esc_html_e("From/Reply-To:", "event_espresso"); ?></label></td><td><input name='from' id='from' type='text' style="width:200px"value='<?php echo get_bloginfo('admin_email', 'display'); ?>'></td></tr> |
|
16 | + <tr><td><label for='from_name'><?php esc_html_e("Your Name", "event_espresso"); ?></label></td><td><input name='from_name' id='from_name' type='text' style="width:200px"value='<?php printf(esc_html__("Admin of %s", "event_espresso"), get_bloginfo('name', 'display')); ?>'></td></tr> |
|
17 | + <tr><td><label for='body'><?php esc_html_e("Comments", "event_espresso"); ?></label></td><td><textarea name="body" id="body" class='system_status_info'><?php esc_html_e("Enter any comments about why you think the error may have occurred", "event_espresso"); ?></textarea> |
|
18 | + <p class='description'><?php esc_html_e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso"); ?></p></td></tr> |
|
19 | + <tr><td colspan="2"><input type="submit" value="<?php esc_html_e("Mail Crash Report to Event Espresso", "event_espresso"); ?>"/></td></tr> |
|
20 | 20 | </table> |
21 | 21 | </form> |
22 | 22 | <br> |
23 | -<p><?php printf(esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),'<a href="mailto:'.EE_SUPPORT_EMAIL.'">',EE_SUPPORT_EMAIL,"</a>");?></p> |
|
24 | -<textarea class="system_status_info"><?php print_r( EEM_System_Status::instance()->get_system_stati())?></textarea> |
|
25 | -<p><?php printf( esc_html__( '%1$sNext Step%2$s', 'event_espresso' ), "<a href='$next_url'>","</a>");?></p> |
|
26 | -<p><?php printf( esc_html__( '...or %1$sDON\'T send crash report%2$s.', 'event_espresso' ), "<a href='$next_url'>","</a>");?></p> |
|
23 | +<p><?php printf(esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), '<a href="mailto:'.EE_SUPPORT_EMAIL.'">', EE_SUPPORT_EMAIL, "</a>"); ?></p> |
|
24 | +<textarea class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati())?></textarea> |
|
25 | +<p><?php printf(esc_html__('%1$sNext Step%2$s', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p> |
|
26 | +<p><?php printf(esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p> |
@@ -9,7 +9,6 @@ discard block |
||
9 | 9 | * and recalculates esp_registration.REG_final_price to actually be the final price |
10 | 10 | * for that registration (before this it was just the ticket's price, NOT including |
11 | 11 | * taxes or other price modifiers) |
12 | - |
|
13 | 12 | */ |
14 | 13 | // make sure we have all the stages loaded too |
15 | 14 | // unfortunately, this needs to be done upon INCLUSION of this file, |
@@ -18,9 +17,9 @@ discard block |
||
18 | 17 | $stages = glob(EE_CORE . 'data_migration_scripts/4_7_0_stages/*'); |
19 | 18 | $class_to_filepath = array(); |
20 | 19 | foreach ($stages as $filepath) { |
21 | - $matches = array(); |
|
22 | - preg_match('~4_7_0_stages/(.*).dmsstage.php~', $filepath, $matches); |
|
23 | - $class_to_filepath[$matches[1]] = $filepath; |
|
20 | + $matches = array(); |
|
21 | + preg_match('~4_7_0_stages/(.*).dmsstage.php~', $filepath, $matches); |
|
22 | + $class_to_filepath[$matches[1]] = $filepath; |
|
24 | 23 | } |
25 | 24 | //give addons a chance to autoload their stages too |
26 | 25 | $class_to_filepath = apply_filters('FHEE__EE_DMS_4_7_0__autoloaded_stages', $class_to_filepath); |
@@ -39,72 +38,72 @@ discard block |
||
39 | 38 | class EE_DMS_Core_4_7_0 extends EE_Data_Migration_Script_Base |
40 | 39 | { |
41 | 40 | |
42 | - /** |
|
43 | - * return EE_DMS_Core_4_7_0 |
|
44 | - * |
|
45 | - * @param TableManager $table_manager |
|
46 | - * @param TableAnalysis $table_analysis |
|
47 | - */ |
|
48 | - public function __construct(TableManager $table_manager = null, TableAnalysis $table_analysis = null) |
|
49 | - { |
|
50 | - $this->_pretty_name = __("Data Update to Event Espresso 4.7.0", "event_espresso"); |
|
51 | - $this->_priority = 10; |
|
52 | - $this->_migration_stages = array( |
|
53 | - new EE_DMS_4_7_0_Add_Taxes_To_REG_Final_Price(), |
|
54 | - new EE_DMS_4_7_0_Registration_Payments(), |
|
55 | - ); |
|
56 | - parent::__construct($table_manager, $table_analysis); |
|
57 | - } |
|
41 | + /** |
|
42 | + * return EE_DMS_Core_4_7_0 |
|
43 | + * |
|
44 | + * @param TableManager $table_manager |
|
45 | + * @param TableAnalysis $table_analysis |
|
46 | + */ |
|
47 | + public function __construct(TableManager $table_manager = null, TableAnalysis $table_analysis = null) |
|
48 | + { |
|
49 | + $this->_pretty_name = __("Data Update to Event Espresso 4.7.0", "event_espresso"); |
|
50 | + $this->_priority = 10; |
|
51 | + $this->_migration_stages = array( |
|
52 | + new EE_DMS_4_7_0_Add_Taxes_To_REG_Final_Price(), |
|
53 | + new EE_DMS_4_7_0_Registration_Payments(), |
|
54 | + ); |
|
55 | + parent::__construct($table_manager, $table_analysis); |
|
56 | + } |
|
58 | 57 | |
59 | 58 | |
60 | 59 | |
61 | - /** |
|
62 | - * @param array $version_array |
|
63 | - * @return bool |
|
64 | - */ |
|
65 | - public function can_migrate_from_version($version_array) |
|
66 | - { |
|
67 | - $version_string = $version_array['Core']; |
|
68 | - if ( |
|
69 | - ( |
|
70 | - version_compare($version_string, '4.7.0', '<=') |
|
71 | - && version_compare($version_string, '4.6.0', '>=') |
|
72 | - ) |
|
73 | - || ( |
|
74 | - version_compare($version_string, '4.7.0', '>=') |
|
75 | - && ! $this->_get_table_analysis()->tableExists('esp_registration_payment') |
|
76 | - && $this->_get_table_analysis()->tableExists('esp_registration') |
|
77 | - ) |
|
78 | - ) { |
|
79 | - return true; |
|
80 | - } elseif ( ! $version_string) { |
|
81 | - //no version string provided... this must be pre 4.3 |
|
82 | - return false;//changed mind. dont want people thinking they should migrate yet because they cant |
|
83 | - } else { |
|
84 | - return false; |
|
85 | - } |
|
86 | - } |
|
60 | + /** |
|
61 | + * @param array $version_array |
|
62 | + * @return bool |
|
63 | + */ |
|
64 | + public function can_migrate_from_version($version_array) |
|
65 | + { |
|
66 | + $version_string = $version_array['Core']; |
|
67 | + if ( |
|
68 | + ( |
|
69 | + version_compare($version_string, '4.7.0', '<=') |
|
70 | + && version_compare($version_string, '4.6.0', '>=') |
|
71 | + ) |
|
72 | + || ( |
|
73 | + version_compare($version_string, '4.7.0', '>=') |
|
74 | + && ! $this->_get_table_analysis()->tableExists('esp_registration_payment') |
|
75 | + && $this->_get_table_analysis()->tableExists('esp_registration') |
|
76 | + ) |
|
77 | + ) { |
|
78 | + return true; |
|
79 | + } elseif ( ! $version_string) { |
|
80 | + //no version string provided... this must be pre 4.3 |
|
81 | + return false;//changed mind. dont want people thinking they should migrate yet because they cant |
|
82 | + } else { |
|
83 | + return false; |
|
84 | + } |
|
85 | + } |
|
87 | 86 | |
88 | 87 | |
89 | 88 | |
90 | - /** |
|
91 | - * @return bool |
|
92 | - */ |
|
93 | - public function schema_changes_before_migration() |
|
94 | - { |
|
95 | - //relies on 4.1's EEH_Activation::create_table |
|
96 | - require_once(EE_HELPERS . 'EEH_Activation.helper.php'); |
|
97 | - $table_name = 'esp_answer'; |
|
98 | - $sql = " ANS_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
89 | + /** |
|
90 | + * @return bool |
|
91 | + */ |
|
92 | + public function schema_changes_before_migration() |
|
93 | + { |
|
94 | + //relies on 4.1's EEH_Activation::create_table |
|
95 | + require_once(EE_HELPERS . 'EEH_Activation.helper.php'); |
|
96 | + $table_name = 'esp_answer'; |
|
97 | + $sql = " ANS_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
99 | 98 | REG_ID INT UNSIGNED NOT NULL, |
100 | 99 | QST_ID INT UNSIGNED NOT NULL, |
101 | 100 | ANS_value TEXT NOT NULL, |
102 | 101 | PRIMARY KEY (ANS_ID), |
103 | 102 | KEY REG_ID (REG_ID), |
104 | 103 | KEY QST_ID (QST_ID)"; |
105 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
106 | - $table_name = 'esp_attendee_meta'; |
|
107 | - $sql = "ATTM_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
104 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
105 | + $table_name = 'esp_attendee_meta'; |
|
106 | + $sql = "ATTM_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
108 | 107 | ATT_ID BIGINT(20) UNSIGNED NOT NULL, |
109 | 108 | ATT_fname VARCHAR(45) NOT NULL, |
110 | 109 | ATT_lname VARCHAR(45) NOT NULL, |
@@ -121,9 +120,9 @@ discard block |
||
121 | 120 | KEY ATT_email (ATT_email), |
122 | 121 | KEY ATT_lname (ATT_lname), |
123 | 122 | KEY ATT_fname (ATT_fname)"; |
124 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
125 | - $table_name = 'esp_country'; |
|
126 | - $sql = "CNT_ISO VARCHAR(2) COLLATE utf8_bin NOT NULL, |
|
123 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
124 | + $table_name = 'esp_country'; |
|
125 | + $sql = "CNT_ISO VARCHAR(2) COLLATE utf8_bin NOT NULL, |
|
127 | 126 | CNT_ISO3 VARCHAR(3) COLLATE utf8_bin NOT NULL, |
128 | 127 | RGN_ID TINYINT(3) UNSIGNED DEFAULT NULL, |
129 | 128 | CNT_name VARCHAR(45) COLLATE utf8_bin NOT NULL, |
@@ -139,25 +138,25 @@ discard block |
||
139 | 138 | CNT_is_EU TINYINT(1) DEFAULT '0', |
140 | 139 | CNT_active TINYINT(1) DEFAULT '0', |
141 | 140 | PRIMARY KEY (CNT_ISO)"; |
142 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
143 | - $table_name = 'esp_currency'; |
|
144 | - $sql = "CUR_code VARCHAR(6) COLLATE utf8_bin NOT NULL, |
|
141 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
142 | + $table_name = 'esp_currency'; |
|
143 | + $sql = "CUR_code VARCHAR(6) COLLATE utf8_bin NOT NULL, |
|
145 | 144 | CUR_single VARCHAR(45) COLLATE utf8_bin DEFAULT 'dollar', |
146 | 145 | CUR_plural VARCHAR(45) COLLATE utf8_bin DEFAULT 'dollars', |
147 | 146 | CUR_sign VARCHAR(45) COLLATE utf8_bin DEFAULT '$', |
148 | 147 | CUR_dec_plc VARCHAR(1) COLLATE utf8_bin NOT NULL DEFAULT '2', |
149 | 148 | CUR_active TINYINT(1) DEFAULT '0', |
150 | 149 | PRIMARY KEY (CUR_code)"; |
151 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
152 | - $table_name = 'esp_currency_payment_method'; |
|
153 | - $sql = "CPM_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
150 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
151 | + $table_name = 'esp_currency_payment_method'; |
|
152 | + $sql = "CPM_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
154 | 153 | CUR_code VARCHAR(6) COLLATE utf8_bin NOT NULL, |
155 | 154 | PMD_ID INT(11) NOT NULL, |
156 | 155 | PRIMARY KEY (CPM_ID), |
157 | 156 | KEY PMD_ID (PMD_ID)"; |
158 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
159 | - $table_name = 'esp_datetime'; |
|
160 | - $sql = "DTT_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
157 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
158 | + $table_name = 'esp_datetime'; |
|
159 | + $sql = "DTT_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
161 | 160 | EVT_ID BIGINT(20) UNSIGNED NOT NULL, |
162 | 161 | DTT_name VARCHAR(255) NOT NULL DEFAULT '', |
163 | 162 | DTT_description TEXT NOT NULL, |
@@ -173,9 +172,9 @@ discard block |
||
173 | 172 | KEY DTT_EVT_start (DTT_EVT_start), |
174 | 173 | KEY EVT_ID (EVT_ID), |
175 | 174 | KEY DTT_is_primary (DTT_is_primary)"; |
176 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
177 | - $table_name = 'esp_event_meta'; |
|
178 | - $sql = " |
|
175 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
176 | + $table_name = 'esp_event_meta'; |
|
177 | + $sql = " |
|
179 | 178 | EVTM_ID INT NOT NULL AUTO_INCREMENT, |
180 | 179 | EVT_ID BIGINT(20) UNSIGNED NOT NULL, |
181 | 180 | EVT_display_desc TINYINT(1) UNSIGNED NOT NULL DEFAULT 1, |
@@ -191,34 +190,34 @@ discard block |
||
191 | 190 | EVT_donations TINYINT(1) NULL, |
192 | 191 | PRIMARY KEY (EVTM_ID), |
193 | 192 | KEY EVT_ID (EVT_ID)"; |
194 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
195 | - $table_name = 'esp_event_question_group'; |
|
196 | - $sql = "EQG_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
193 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
194 | + $table_name = 'esp_event_question_group'; |
|
195 | + $sql = "EQG_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
197 | 196 | EVT_ID BIGINT(20) UNSIGNED NOT NULL, |
198 | 197 | QSG_ID INT UNSIGNED NOT NULL, |
199 | 198 | EQG_primary TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, |
200 | 199 | PRIMARY KEY (EQG_ID), |
201 | 200 | KEY EVT_ID (EVT_ID), |
202 | 201 | KEY QSG_ID (QSG_ID)"; |
203 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
204 | - $table_name = 'esp_event_venue'; |
|
205 | - $sql = "EVV_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
202 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
203 | + $table_name = 'esp_event_venue'; |
|
204 | + $sql = "EVV_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
206 | 205 | EVT_ID BIGINT(20) UNSIGNED NOT NULL, |
207 | 206 | VNU_ID BIGINT(20) UNSIGNED NOT NULL, |
208 | 207 | EVV_primary TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, |
209 | 208 | PRIMARY KEY (EVV_ID)"; |
210 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
211 | - $table_name = 'esp_extra_meta'; |
|
212 | - $sql = "EXM_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
209 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
210 | + $table_name = 'esp_extra_meta'; |
|
211 | + $sql = "EXM_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
213 | 212 | OBJ_ID INT(11) DEFAULT NULL, |
214 | 213 | EXM_type VARCHAR(45) DEFAULT NULL, |
215 | 214 | EXM_key VARCHAR(45) DEFAULT NULL, |
216 | 215 | EXM_value TEXT, |
217 | 216 | PRIMARY KEY (EXM_ID), |
218 | 217 | KEY EXM_type (EXM_type, OBJ_ID, EXM_key(45))"; |
219 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
220 | - $table_name = 'esp_line_item'; |
|
221 | - $sql = "LIN_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
218 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
219 | + $table_name = 'esp_line_item'; |
|
220 | + $sql = "LIN_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
222 | 221 | LIN_code VARCHAR(245) NOT NULL DEFAULT '', |
223 | 222 | TXN_ID INT(11) DEFAULT NULL, |
224 | 223 | LIN_name VARCHAR(245) NOT NULL DEFAULT '', |
@@ -236,9 +235,9 @@ discard block |
||
236 | 235 | PRIMARY KEY (LIN_ID), |
237 | 236 | KEY LIN_code (LIN_code(191)), |
238 | 237 | KEY TXN_ID (TXN_ID)"; |
239 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
240 | - $table_name = 'esp_log'; |
|
241 | - $sql = "LOG_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
238 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
239 | + $table_name = 'esp_log'; |
|
240 | + $sql = "LOG_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
242 | 241 | LOG_time DATETIME DEFAULT NULL, |
243 | 242 | OBJ_ID VARCHAR(45) DEFAULT NULL, |
244 | 243 | OBJ_type VARCHAR(45) DEFAULT NULL, |
@@ -249,18 +248,18 @@ discard block |
||
249 | 248 | KEY LOG_time (LOG_time), |
250 | 249 | KEY OBJ (OBJ_type,OBJ_ID), |
251 | 250 | KEY LOG_type (LOG_type)"; |
252 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
253 | - $table_name = 'esp_message_template'; |
|
254 | - $sql = "MTP_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
251 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
252 | + $table_name = 'esp_message_template'; |
|
253 | + $sql = "MTP_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
255 | 254 | GRP_ID INT(10) UNSIGNED NOT NULL, |
256 | 255 | MTP_context VARCHAR(50) NOT NULL, |
257 | 256 | MTP_template_field VARCHAR(30) NOT NULL, |
258 | 257 | MTP_content TEXT NOT NULL, |
259 | 258 | PRIMARY KEY (MTP_ID), |
260 | 259 | KEY GRP_ID (GRP_ID)"; |
261 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
262 | - $table_name = 'esp_message_template_group'; |
|
263 | - $sql = "GRP_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
260 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
261 | + $table_name = 'esp_message_template_group'; |
|
262 | + $sql = "GRP_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
264 | 263 | MTP_user_id INT(10) NOT NULL DEFAULT '1', |
265 | 264 | MTP_name VARCHAR(245) NOT NULL DEFAULT '', |
266 | 265 | MTP_description VARCHAR(245) NOT NULL DEFAULT '', |
@@ -272,17 +271,17 @@ discard block |
||
272 | 271 | MTP_is_active TINYINT(1) NOT NULL DEFAULT '1', |
273 | 272 | PRIMARY KEY (GRP_ID), |
274 | 273 | KEY MTP_user_id (MTP_user_id)"; |
275 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
276 | - $table_name = 'esp_event_message_template'; |
|
277 | - $sql = "EMT_ID BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
274 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
275 | + $table_name = 'esp_event_message_template'; |
|
276 | + $sql = "EMT_ID BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
278 | 277 | EVT_ID BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, |
279 | 278 | GRP_ID INT(10) UNSIGNED NOT NULL DEFAULT 0, |
280 | 279 | PRIMARY KEY (EMT_ID), |
281 | 280 | KEY EVT_ID (EVT_ID), |
282 | 281 | KEY GRP_ID (GRP_ID)"; |
283 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
284 | - $table_name = 'esp_payment'; |
|
285 | - $sql = "PAY_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
282 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
283 | + $table_name = 'esp_payment'; |
|
284 | + $sql = "PAY_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
286 | 285 | TXN_ID INT(10) UNSIGNED DEFAULT NULL, |
287 | 286 | STS_ID VARCHAR(3) COLLATE utf8_bin DEFAULT NULL, |
288 | 287 | PAY_timestamp DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', |
@@ -299,9 +298,9 @@ discard block |
||
299 | 298 | PRIMARY KEY (PAY_ID), |
300 | 299 | KEY PAY_timestamp (PAY_timestamp), |
301 | 300 | KEY TXN_ID (TXN_ID)"; |
302 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
303 | - $table_name = 'esp_payment_method'; |
|
304 | - $sql = "PMD_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
301 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
302 | + $table_name = 'esp_payment_method'; |
|
303 | + $sql = "PMD_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
305 | 304 | PMD_type VARCHAR(124) DEFAULT NULL, |
306 | 305 | PMD_name VARCHAR(255) DEFAULT NULL, |
307 | 306 | PMD_desc TEXT, |
@@ -317,32 +316,32 @@ discard block |
||
317 | 316 | PRIMARY KEY (PMD_ID), |
318 | 317 | UNIQUE KEY PMD_slug_UNIQUE (PMD_slug), |
319 | 318 | KEY PMD_type (PMD_type)"; |
320 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
321 | - $table_name = "esp_ticket_price"; |
|
322 | - $sql = "TKP_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
319 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
320 | + $table_name = "esp_ticket_price"; |
|
321 | + $sql = "TKP_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
323 | 322 | TKT_ID INT(10) UNSIGNED NOT NULL, |
324 | 323 | PRC_ID INT(10) UNSIGNED NOT NULL, |
325 | 324 | PRIMARY KEY (TKP_ID), |
326 | 325 | KEY TKT_ID (TKT_ID), |
327 | 326 | KEY PRC_ID (PRC_ID)"; |
328 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
329 | - $table_name = "esp_datetime_ticket"; |
|
330 | - $sql = "DTK_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
327 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
328 | + $table_name = "esp_datetime_ticket"; |
|
329 | + $sql = "DTK_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
331 | 330 | DTT_ID INT(10) UNSIGNED NOT NULL, |
332 | 331 | TKT_ID INT(10) UNSIGNED NOT NULL, |
333 | 332 | PRIMARY KEY (DTK_ID), |
334 | 333 | KEY DTT_ID (DTT_ID), |
335 | 334 | KEY TKT_ID (TKT_ID)"; |
336 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
337 | - $table_name = "esp_ticket_template"; |
|
338 | - $sql = "TTM_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
335 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
336 | + $table_name = "esp_ticket_template"; |
|
337 | + $sql = "TTM_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
339 | 338 | TTM_name VARCHAR(45) NOT NULL, |
340 | 339 | TTM_description TEXT, |
341 | 340 | TTM_file VARCHAR(45), |
342 | 341 | PRIMARY KEY (TTM_ID)"; |
343 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
344 | - $table_name = 'esp_question'; |
|
345 | - $sql = 'QST_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
342 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
343 | + $table_name = 'esp_question'; |
|
344 | + $sql = 'QST_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
346 | 345 | QST_display_text TEXT NOT NULL, |
347 | 346 | QST_admin_label VARCHAR(255) NOT NULL, |
348 | 347 | QST_system VARCHAR(25) DEFAULT NULL, |
@@ -355,18 +354,18 @@ discard block |
||
355 | 354 | QST_deleted TINYINT UNSIGNED NOT NULL DEFAULT 0, |
356 | 355 | PRIMARY KEY (QST_ID), |
357 | 356 | KEY QST_order (QST_order)'; |
358 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
359 | - $table_name = 'esp_question_group_question'; |
|
360 | - $sql = "QGQ_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
357 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
358 | + $table_name = 'esp_question_group_question'; |
|
359 | + $sql = "QGQ_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
361 | 360 | QSG_ID INT UNSIGNED NOT NULL, |
362 | 361 | QST_ID INT UNSIGNED NOT NULL, |
363 | 362 | QGQ_order INT UNSIGNED NOT NULL DEFAULT 0, |
364 | 363 | PRIMARY KEY (QGQ_ID), |
365 | 364 | KEY QST_ID (QST_ID), |
366 | 365 | KEY QSG_ID_order (QSG_ID, QGQ_order)"; |
367 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
368 | - $table_name = 'esp_question_option'; |
|
369 | - $sql = "QSO_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
366 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
367 | + $table_name = 'esp_question_option'; |
|
368 | + $sql = "QSO_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
370 | 369 | QSO_value VARCHAR(255) NOT NULL, |
371 | 370 | QSO_desc TEXT NOT NULL, |
372 | 371 | QST_ID INT UNSIGNED NOT NULL, |
@@ -375,9 +374,9 @@ discard block |
||
375 | 374 | PRIMARY KEY (QSO_ID), |
376 | 375 | KEY QST_ID (QST_ID), |
377 | 376 | KEY QSO_order (QSO_order)"; |
378 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
379 | - $table_name = 'esp_registration'; |
|
380 | - $sql = "REG_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
377 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
378 | + $table_name = 'esp_registration'; |
|
379 | + $sql = "REG_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
381 | 380 | EVT_ID BIGINT(20) UNSIGNED NOT NULL, |
382 | 381 | ATT_ID BIGINT(20) UNSIGNED NOT NULL, |
383 | 382 | TXN_ID INT(10) UNSIGNED NOT NULL, |
@@ -401,18 +400,18 @@ discard block |
||
401 | 400 | KEY TKT_ID (TKT_ID), |
402 | 401 | KEY EVT_ID (EVT_ID), |
403 | 402 | KEY STS_ID (STS_ID)"; |
404 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
405 | - $table_name = 'esp_registration_payment'; |
|
406 | - $sql = "RPY_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
403 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
404 | + $table_name = 'esp_registration_payment'; |
|
405 | + $sql = "RPY_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
407 | 406 | REG_ID INT(10) UNSIGNED NOT NULL, |
408 | 407 | PAY_ID INT(10) UNSIGNED NULL, |
409 | 408 | RPY_amount DECIMAL(10,3) NOT NULL DEFAULT '0.00', |
410 | 409 | PRIMARY KEY (RPY_ID), |
411 | 410 | KEY REG_ID (REG_ID), |
412 | 411 | KEY PAY_ID (PAY_ID)"; |
413 | - $this->_table_is_new_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
414 | - $table_name = 'esp_checkin'; |
|
415 | - $sql = "CHK_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
412 | + $this->_table_is_new_in_this_version($table_name, $sql, 'ENGINE=InnoDB '); |
|
413 | + $table_name = 'esp_checkin'; |
|
414 | + $sql = "CHK_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
416 | 415 | REG_ID INT(10) UNSIGNED NOT NULL, |
417 | 416 | DTT_ID INT(10) UNSIGNED NOT NULL, |
418 | 417 | CHK_in TINYINT(1) UNSIGNED NOT NULL DEFAULT 1, |
@@ -420,9 +419,9 @@ discard block |
||
420 | 419 | PRIMARY KEY (CHK_ID), |
421 | 420 | KEY REG_ID (REG_ID), |
422 | 421 | KEY DTT_ID (DTT_ID)"; |
423 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
424 | - $table_name = 'esp_state'; |
|
425 | - $sql = "STA_ID smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
422 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
423 | + $table_name = 'esp_state'; |
|
424 | + $sql = "STA_ID smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
426 | 425 | CNT_ISO VARCHAR(2) COLLATE utf8_bin NOT NULL, |
427 | 426 | STA_abbrev VARCHAR(24) COLLATE utf8_bin NOT NULL, |
428 | 427 | STA_name VARCHAR(100) COLLATE utf8_bin NOT NULL, |
@@ -430,9 +429,9 @@ discard block |
||
430 | 429 | PRIMARY KEY (STA_ID), |
431 | 430 | KEY STA_abbrev (STA_abbrev), |
432 | 431 | KEY CNT_ISO (CNT_ISO)"; |
433 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
434 | - $table_name = 'esp_status'; |
|
435 | - $sql = "STS_ID VARCHAR(3) COLLATE utf8_bin NOT NULL, |
|
432 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
433 | + $table_name = 'esp_status'; |
|
434 | + $sql = "STS_ID VARCHAR(3) COLLATE utf8_bin NOT NULL, |
|
436 | 435 | STS_code VARCHAR(45) COLLATE utf8_bin NOT NULL, |
437 | 436 | STS_type set('event','registration','transaction','payment','email') COLLATE utf8_bin NOT NULL, |
438 | 437 | STS_can_edit TINYINT(1) NOT NULL DEFAULT 0, |
@@ -440,9 +439,9 @@ discard block |
||
440 | 439 | STS_open TINYINT(1) NOT NULL DEFAULT 1, |
441 | 440 | UNIQUE KEY STS_ID_UNIQUE (STS_ID), |
442 | 441 | KEY STS_type (STS_type)"; |
443 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
444 | - $table_name = 'esp_transaction'; |
|
445 | - $sql = "TXN_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
442 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
443 | + $table_name = 'esp_transaction'; |
|
444 | + $sql = "TXN_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
446 | 445 | TXN_timestamp DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', |
447 | 446 | TXN_total DECIMAL(10,3) DEFAULT '0.00', |
448 | 447 | TXN_paid DECIMAL(10,3) NOT NULL DEFAULT '0.00', |
@@ -454,9 +453,9 @@ discard block |
||
454 | 453 | PRIMARY KEY (TXN_ID), |
455 | 454 | KEY TXN_timestamp (TXN_timestamp), |
456 | 455 | KEY STS_ID (STS_ID)"; |
457 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
458 | - $table_name = 'esp_venue_meta'; |
|
459 | - $sql = "VNUM_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
456 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
457 | + $table_name = 'esp_venue_meta'; |
|
458 | + $sql = "VNUM_ID INT(11) NOT NULL AUTO_INCREMENT, |
|
460 | 459 | VNU_ID BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, |
461 | 460 | VNU_address VARCHAR(255) DEFAULT NULL, |
462 | 461 | VNU_address2 VARCHAR(255) DEFAULT NULL, |
@@ -475,10 +474,10 @@ discard block |
||
475 | 474 | KEY VNU_ID (VNU_ID), |
476 | 475 | KEY STA_ID (STA_ID), |
477 | 476 | KEY CNT_ISO (CNT_ISO)"; |
478 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
479 | - //modified tables |
|
480 | - $table_name = "esp_price"; |
|
481 | - $sql = "PRC_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
477 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
478 | + //modified tables |
|
479 | + $table_name = "esp_price"; |
|
480 | + $sql = "PRC_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
482 | 481 | PRT_ID TINYINT(3) UNSIGNED NOT NULL, |
483 | 482 | PRC_amount DECIMAL(10,3) NOT NULL DEFAULT '0.00', |
484 | 483 | PRC_name VARCHAR(245) NOT NULL, |
@@ -491,9 +490,9 @@ discard block |
||
491 | 490 | PRC_parent INT(10) UNSIGNED DEFAULT 0, |
492 | 491 | PRIMARY KEY (PRC_ID), |
493 | 492 | KEY PRT_ID (PRT_ID)"; |
494 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
495 | - $table_name = "esp_price_type"; |
|
496 | - $sql = "PRT_ID TINYINT(3) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
493 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
494 | + $table_name = "esp_price_type"; |
|
495 | + $sql = "PRT_ID TINYINT(3) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
497 | 496 | PRT_name VARCHAR(45) NOT NULL, |
498 | 497 | PBT_ID TINYINT(3) UNSIGNED NOT NULL DEFAULT '1', |
499 | 498 | PRT_is_percent TINYINT(1) NOT NULL DEFAULT '0', |
@@ -502,9 +501,9 @@ discard block |
||
502 | 501 | PRT_deleted TINYINT(1) NOT NULL DEFAULT '0', |
503 | 502 | UNIQUE KEY PRT_name_UNIQUE (PRT_name), |
504 | 503 | PRIMARY KEY (PRT_ID)"; |
505 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
506 | - $table_name = "esp_ticket"; |
|
507 | - $sql = "TKT_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
504 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
505 | + $table_name = "esp_ticket"; |
|
506 | + $sql = "TKT_ID INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
|
508 | 507 | TTM_ID INT(10) UNSIGNED NOT NULL, |
509 | 508 | TKT_name VARCHAR(245) NOT NULL DEFAULT '', |
510 | 509 | TKT_description TEXT NOT NULL, |
@@ -526,9 +525,9 @@ discard block |
||
526 | 525 | TKT_deleted TINYINT(1) NOT NULL DEFAULT '0', |
527 | 526 | PRIMARY KEY (TKT_ID), |
528 | 527 | KEY TKT_start_date (TKT_start_date)"; |
529 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
530 | - $table_name = 'esp_question_group'; |
|
531 | - $sql = 'QSG_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
528 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
529 | + $table_name = 'esp_question_group'; |
|
530 | + $sql = 'QSG_ID INT UNSIGNED NOT NULL AUTO_INCREMENT, |
|
532 | 531 | QSG_name VARCHAR(255) NOT NULL, |
533 | 532 | QSG_identifier VARCHAR(100) NOT NULL, |
534 | 533 | QSG_desc TEXT NULL, |
@@ -541,38 +540,38 @@ discard block |
||
541 | 540 | PRIMARY KEY (QSG_ID), |
542 | 541 | UNIQUE KEY QSG_identifier_UNIQUE (QSG_identifier), |
543 | 542 | KEY QSG_order (QSG_order)'; |
544 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
545 | - /** @var EE_DMS_Core_4_1_0 $script_4_1_defaults */ |
|
546 | - $script_4_1_defaults = EE_Registry::instance()->load_dms('Core_4_1_0'); |
|
547 | - //(because many need to convert old string states to foreign keys into the states table) |
|
548 | - $script_4_1_defaults->insert_default_states(); |
|
549 | - $script_4_1_defaults->insert_default_countries(); |
|
550 | - /** @var EE_DMS_Core_4_5_0 $script_4_5_defaults */ |
|
551 | - $script_4_5_defaults = EE_Registry::instance()->load_dms('Core_4_5_0'); |
|
552 | - $script_4_5_defaults->insert_default_price_types(); |
|
553 | - $script_4_5_defaults->insert_default_prices(); |
|
554 | - $script_4_5_defaults->insert_default_tickets(); |
|
555 | - /** @var EE_DMS_Core_4_6_0 $script_4_6_defaults */ |
|
556 | - $script_4_6_defaults = EE_Registry::instance()->load_dms('Core_4_6_0'); |
|
557 | - $script_4_6_defaults->add_default_admin_only_payments(); |
|
558 | - $script_4_6_defaults->insert_default_currencies(); |
|
559 | - return true; |
|
560 | - } |
|
543 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
544 | + /** @var EE_DMS_Core_4_1_0 $script_4_1_defaults */ |
|
545 | + $script_4_1_defaults = EE_Registry::instance()->load_dms('Core_4_1_0'); |
|
546 | + //(because many need to convert old string states to foreign keys into the states table) |
|
547 | + $script_4_1_defaults->insert_default_states(); |
|
548 | + $script_4_1_defaults->insert_default_countries(); |
|
549 | + /** @var EE_DMS_Core_4_5_0 $script_4_5_defaults */ |
|
550 | + $script_4_5_defaults = EE_Registry::instance()->load_dms('Core_4_5_0'); |
|
551 | + $script_4_5_defaults->insert_default_price_types(); |
|
552 | + $script_4_5_defaults->insert_default_prices(); |
|
553 | + $script_4_5_defaults->insert_default_tickets(); |
|
554 | + /** @var EE_DMS_Core_4_6_0 $script_4_6_defaults */ |
|
555 | + $script_4_6_defaults = EE_Registry::instance()->load_dms('Core_4_6_0'); |
|
556 | + $script_4_6_defaults->add_default_admin_only_payments(); |
|
557 | + $script_4_6_defaults->insert_default_currencies(); |
|
558 | + return true; |
|
559 | + } |
|
561 | 560 | |
562 | 561 | |
563 | 562 | |
564 | - /** |
|
565 | - * @return boolean |
|
566 | - */ |
|
567 | - public function schema_changes_after_migration() |
|
568 | - { |
|
569 | - return true; |
|
570 | - } |
|
563 | + /** |
|
564 | + * @return boolean |
|
565 | + */ |
|
566 | + public function schema_changes_after_migration() |
|
567 | + { |
|
568 | + return true; |
|
569 | + } |
|
571 | 570 | |
572 | 571 | |
573 | 572 | |
574 | - public function migration_page_hooks() |
|
575 | - { |
|
576 | - } |
|
573 | + public function migration_page_hooks() |
|
574 | + { |
|
575 | + } |
|
577 | 576 | } |
578 | 577 | // end of file: /core/data_migration_scripts/EE_DMS_Core_4_7_0.dms.php |
579 | 578 | \ No newline at end of file |
@@ -12,9 +12,9 @@ discard block |
||
12 | 12 | $stages = glob(EE_CORE . 'data_migration_scripts/4_9_0_stages/*'); |
13 | 13 | $class_to_filepath = array(); |
14 | 14 | foreach ($stages as $filepath) { |
15 | - $matches = array(); |
|
16 | - preg_match('~4_9_0_stages/(.*).dmsstage.php~', $filepath, $matches); |
|
17 | - $class_to_filepath[$matches[1]] = $filepath; |
|
15 | + $matches = array(); |
|
16 | + preg_match('~4_9_0_stages/(.*).dmsstage.php~', $filepath, $matches); |
|
17 | + $class_to_filepath[$matches[1]] = $filepath; |
|
18 | 18 | } |
19 | 19 | //give addons a chance to autoload their stages too |
20 | 20 | $class_to_filepath = apply_filters('FHEE__EE_DMS_4_9_0__autoloaded_stages', $class_to_filepath); |
@@ -33,67 +33,67 @@ discard block |
||
33 | 33 | class EE_DMS_Core_4_9_0 extends EE_Data_Migration_Script_Base |
34 | 34 | { |
35 | 35 | |
36 | - /** |
|
37 | - * return EE_DMS_Core_4_9_0 |
|
38 | - * |
|
39 | - * @param TableManager $table_manager |
|
40 | - * @param TableAnalysis $table_analysis |
|
41 | - */ |
|
42 | - public function __construct(TableManager $table_manager = null, TableAnalysis $table_analysis = null) |
|
43 | - { |
|
44 | - $this->_pretty_name = esc_html__("Data Update to Event Espresso 4.9.0", "event_espresso"); |
|
45 | - $this->_priority = 10; |
|
46 | - $this->_migration_stages = array( |
|
47 | - new EE_DMS_4_9_0_Email_System_Question(), |
|
48 | - new EE_DMS_4_9_0_Answers_With_No_Registration(), |
|
49 | - ); |
|
50 | - parent::__construct($table_manager, $table_analysis); |
|
51 | - } |
|
36 | + /** |
|
37 | + * return EE_DMS_Core_4_9_0 |
|
38 | + * |
|
39 | + * @param TableManager $table_manager |
|
40 | + * @param TableAnalysis $table_analysis |
|
41 | + */ |
|
42 | + public function __construct(TableManager $table_manager = null, TableAnalysis $table_analysis = null) |
|
43 | + { |
|
44 | + $this->_pretty_name = esc_html__("Data Update to Event Espresso 4.9.0", "event_espresso"); |
|
45 | + $this->_priority = 10; |
|
46 | + $this->_migration_stages = array( |
|
47 | + new EE_DMS_4_9_0_Email_System_Question(), |
|
48 | + new EE_DMS_4_9_0_Answers_With_No_Registration(), |
|
49 | + ); |
|
50 | + parent::__construct($table_manager, $table_analysis); |
|
51 | + } |
|
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | - /** |
|
56 | - * Whether to migrate or not. |
|
57 | - * |
|
58 | - * @param array $version_array |
|
59 | - * @return bool |
|
60 | - */ |
|
61 | - public function can_migrate_from_version($version_array) |
|
62 | - { |
|
63 | - $version_string = $version_array['Core']; |
|
64 | - if (version_compare($version_string, '4.9.0', '<=') && version_compare($version_string, '4.8.0', '>=')) { |
|
55 | + /** |
|
56 | + * Whether to migrate or not. |
|
57 | + * |
|
58 | + * @param array $version_array |
|
59 | + * @return bool |
|
60 | + */ |
|
61 | + public function can_migrate_from_version($version_array) |
|
62 | + { |
|
63 | + $version_string = $version_array['Core']; |
|
64 | + if (version_compare($version_string, '4.9.0', '<=') && version_compare($version_string, '4.8.0', '>=')) { |
|
65 | 65 | // echo "$version_string can be migrated from"; |
66 | - return true; |
|
67 | - } elseif ( ! $version_string) { |
|
66 | + return true; |
|
67 | + } elseif ( ! $version_string) { |
|
68 | 68 | // echo "no version string provided: $version_string"; |
69 | - //no version string provided... this must be pre 4.3 |
|
70 | - return false;//changed mind. dont want people thinking they should migrate yet because they cant |
|
71 | - } else { |
|
69 | + //no version string provided... this must be pre 4.3 |
|
70 | + return false;//changed mind. dont want people thinking they should migrate yet because they cant |
|
71 | + } else { |
|
72 | 72 | // echo "$version_string doesnt apply"; |
73 | - return false; |
|
74 | - } |
|
75 | - } |
|
73 | + return false; |
|
74 | + } |
|
75 | + } |
|
76 | 76 | |
77 | 77 | |
78 | 78 | |
79 | - /** |
|
80 | - * @return bool |
|
81 | - */ |
|
82 | - public function schema_changes_before_migration() |
|
83 | - { |
|
84 | - require_once(EE_HELPERS . 'EEH_Activation.helper.php'); |
|
85 | - $now_in_mysql = current_time('mysql', true); |
|
86 | - $table_name = 'esp_answer'; |
|
87 | - $sql = " ANS_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
79 | + /** |
|
80 | + * @return bool |
|
81 | + */ |
|
82 | + public function schema_changes_before_migration() |
|
83 | + { |
|
84 | + require_once(EE_HELPERS . 'EEH_Activation.helper.php'); |
|
85 | + $now_in_mysql = current_time('mysql', true); |
|
86 | + $table_name = 'esp_answer'; |
|
87 | + $sql = " ANS_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
88 | 88 | REG_ID int(10) unsigned NOT NULL, |
89 | 89 | QST_ID int(10) unsigned NOT NULL, |
90 | 90 | ANS_value text NOT NULL, |
91 | 91 | PRIMARY KEY (ANS_ID), |
92 | 92 | KEY REG_ID (REG_ID), |
93 | 93 | KEY QST_ID (QST_ID)"; |
94 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
95 | - $table_name = 'esp_attendee_meta'; |
|
96 | - $sql = "ATTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
94 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
95 | + $table_name = 'esp_attendee_meta'; |
|
96 | + $sql = "ATTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
97 | 97 | ATT_ID bigint(20) unsigned NOT NULL, |
98 | 98 | ATT_fname varchar(45) NOT NULL, |
99 | 99 | ATT_lname varchar(45) NOT NULL, |
@@ -110,9 +110,9 @@ discard block |
||
110 | 110 | KEY ATT_email (ATT_email), |
111 | 111 | KEY ATT_lname (ATT_lname), |
112 | 112 | KEY ATT_fname (ATT_fname)"; |
113 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
114 | - $table_name = 'esp_checkin'; |
|
115 | - $sql = "CHK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
113 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
114 | + $table_name = 'esp_checkin'; |
|
115 | + $sql = "CHK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
116 | 116 | REG_ID int(10) unsigned NOT NULL, |
117 | 117 | DTT_ID int(10) unsigned NOT NULL, |
118 | 118 | CHK_in tinyint(1) unsigned NOT NULL DEFAULT 1, |
@@ -120,9 +120,9 @@ discard block |
||
120 | 120 | PRIMARY KEY (CHK_ID), |
121 | 121 | KEY REG_ID (REG_ID), |
122 | 122 | KEY DTT_ID (DTT_ID)"; |
123 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
124 | - $table_name = 'esp_country'; |
|
125 | - $sql = "CNT_ISO varchar(2) collate utf8_bin NOT NULL, |
|
123 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
124 | + $table_name = 'esp_country'; |
|
125 | + $sql = "CNT_ISO varchar(2) collate utf8_bin NOT NULL, |
|
126 | 126 | CNT_ISO3 varchar(3) collate utf8_bin NOT NULL, |
127 | 127 | RGN_ID tinyint(3) unsigned DEFAULT NULL, |
128 | 128 | CNT_name varchar(45) collate utf8_bin NOT NULL, |
@@ -138,25 +138,25 @@ discard block |
||
138 | 138 | CNT_is_EU tinyint(1) DEFAULT '0', |
139 | 139 | CNT_active tinyint(1) DEFAULT '0', |
140 | 140 | PRIMARY KEY (CNT_ISO)"; |
141 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
142 | - $table_name = 'esp_currency'; |
|
143 | - $sql = "CUR_code varchar(6) collate utf8_bin NOT NULL, |
|
141 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
142 | + $table_name = 'esp_currency'; |
|
143 | + $sql = "CUR_code varchar(6) collate utf8_bin NOT NULL, |
|
144 | 144 | CUR_single varchar(45) collate utf8_bin DEFAULT 'dollar', |
145 | 145 | CUR_plural varchar(45) collate utf8_bin DEFAULT 'dollars', |
146 | 146 | CUR_sign varchar(45) collate utf8_bin DEFAULT '$', |
147 | 147 | CUR_dec_plc varchar(1) collate utf8_bin NOT NULL DEFAULT '2', |
148 | 148 | CUR_active tinyint(1) DEFAULT '0', |
149 | 149 | PRIMARY KEY (CUR_code)"; |
150 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
151 | - $table_name = 'esp_currency_payment_method'; |
|
152 | - $sql = "CPM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
150 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
151 | + $table_name = 'esp_currency_payment_method'; |
|
152 | + $sql = "CPM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
153 | 153 | CUR_code varchar(6) collate utf8_bin NOT NULL, |
154 | 154 | PMD_ID int(11) NOT NULL, |
155 | 155 | PRIMARY KEY (CPM_ID), |
156 | 156 | KEY PMD_ID (PMD_ID)"; |
157 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
158 | - $table_name = 'esp_datetime'; |
|
159 | - $sql = "DTT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
157 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
158 | + $table_name = 'esp_datetime'; |
|
159 | + $sql = "DTT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
160 | 160 | EVT_ID bigint(20) unsigned NOT NULL, |
161 | 161 | DTT_name varchar(255) NOT NULL DEFAULT '', |
162 | 162 | DTT_description text NOT NULL, |
@@ -172,25 +172,25 @@ discard block |
||
172 | 172 | KEY DTT_EVT_start (DTT_EVT_start), |
173 | 173 | KEY EVT_ID (EVT_ID), |
174 | 174 | KEY DTT_is_primary (DTT_is_primary)"; |
175 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
176 | - $table_name = "esp_datetime_ticket"; |
|
177 | - $sql = "DTK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
175 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
176 | + $table_name = "esp_datetime_ticket"; |
|
177 | + $sql = "DTK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
178 | 178 | DTT_ID int(10) unsigned NOT NULL, |
179 | 179 | TKT_ID int(10) unsigned NOT NULL, |
180 | 180 | PRIMARY KEY (DTK_ID), |
181 | 181 | KEY DTT_ID (DTT_ID), |
182 | 182 | KEY TKT_ID (TKT_ID)"; |
183 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
184 | - $table_name = 'esp_event_message_template'; |
|
185 | - $sql = "EMT_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
183 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
184 | + $table_name = 'esp_event_message_template'; |
|
185 | + $sql = "EMT_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
186 | 186 | EVT_ID bigint(20) unsigned NOT NULL DEFAULT 0, |
187 | 187 | GRP_ID int(10) unsigned NOT NULL DEFAULT 0, |
188 | 188 | PRIMARY KEY (EMT_ID), |
189 | 189 | KEY EVT_ID (EVT_ID), |
190 | 190 | KEY GRP_ID (GRP_ID)"; |
191 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
192 | - $table_name = 'esp_event_meta'; |
|
193 | - $sql = "EVTM_ID int(10) NOT NULL AUTO_INCREMENT, |
|
191 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
192 | + $table_name = 'esp_event_meta'; |
|
193 | + $sql = "EVTM_ID int(10) NOT NULL AUTO_INCREMENT, |
|
194 | 194 | EVT_ID bigint(20) unsigned NOT NULL, |
195 | 195 | EVT_display_desc tinyint(1) unsigned NOT NULL DEFAULT 1, |
196 | 196 | EVT_display_ticket_selector tinyint(1) unsigned NOT NULL DEFAULT 1, |
@@ -205,34 +205,34 @@ discard block |
||
205 | 205 | EVT_donations tinyint(1) NULL, |
206 | 206 | PRIMARY KEY (EVTM_ID), |
207 | 207 | KEY EVT_ID (EVT_ID)"; |
208 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
209 | - $table_name = 'esp_event_question_group'; |
|
210 | - $sql = "EQG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
208 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
209 | + $table_name = 'esp_event_question_group'; |
|
210 | + $sql = "EQG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
211 | 211 | EVT_ID bigint(20) unsigned NOT NULL, |
212 | 212 | QSG_ID int(10) unsigned NOT NULL, |
213 | 213 | EQG_primary tinyint(1) unsigned NOT NULL DEFAULT 0, |
214 | 214 | PRIMARY KEY (EQG_ID), |
215 | 215 | KEY EVT_ID (EVT_ID), |
216 | 216 | KEY QSG_ID (QSG_ID)"; |
217 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
218 | - $table_name = 'esp_event_venue'; |
|
219 | - $sql = "EVV_ID int(11) NOT NULL AUTO_INCREMENT, |
|
217 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
218 | + $table_name = 'esp_event_venue'; |
|
219 | + $sql = "EVV_ID int(11) NOT NULL AUTO_INCREMENT, |
|
220 | 220 | EVT_ID bigint(20) unsigned NOT NULL, |
221 | 221 | VNU_ID bigint(20) unsigned NOT NULL, |
222 | 222 | EVV_primary tinyint(1) unsigned NOT NULL DEFAULT 0, |
223 | 223 | PRIMARY KEY (EVV_ID)"; |
224 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
225 | - $table_name = 'esp_extra_meta'; |
|
226 | - $sql = "EXM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
224 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
225 | + $table_name = 'esp_extra_meta'; |
|
226 | + $sql = "EXM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
227 | 227 | OBJ_ID int(11) DEFAULT NULL, |
228 | 228 | EXM_type varchar(45) DEFAULT NULL, |
229 | 229 | EXM_key varchar(45) DEFAULT NULL, |
230 | 230 | EXM_value text, |
231 | 231 | PRIMARY KEY (EXM_ID), |
232 | 232 | KEY EXM_type (EXM_type,OBJ_ID,EXM_key)"; |
233 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
234 | - $table_name = 'esp_extra_join'; |
|
235 | - $sql = "EXJ_ID int(11) NOT NULL AUTO_INCREMENT, |
|
233 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
234 | + $table_name = 'esp_extra_join'; |
|
235 | + $sql = "EXJ_ID int(11) NOT NULL AUTO_INCREMENT, |
|
236 | 236 | EXJ_first_model_id varchar(6) NOT NULL, |
237 | 237 | EXJ_first_model_name varchar(20) NOT NULL, |
238 | 238 | EXJ_second_model_id varchar(6) NOT NULL, |
@@ -240,9 +240,9 @@ discard block |
||
240 | 240 | PRIMARY KEY (EXJ_ID), |
241 | 241 | KEY first_model (EXJ_first_model_name,EXJ_first_model_id), |
242 | 242 | KEY second_model (EXJ_second_model_name,EXJ_second_model_id)"; |
243 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
244 | - $table_name = 'esp_line_item'; |
|
245 | - $sql = "LIN_ID int(11) NOT NULL AUTO_INCREMENT, |
|
243 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
244 | + $table_name = 'esp_line_item'; |
|
245 | + $sql = "LIN_ID int(11) NOT NULL AUTO_INCREMENT, |
|
246 | 246 | LIN_code varchar(245) NOT NULL DEFAULT '', |
247 | 247 | TXN_ID int(11) DEFAULT NULL, |
248 | 248 | LIN_name varchar(245) NOT NULL DEFAULT '', |
@@ -261,9 +261,9 @@ discard block |
||
261 | 261 | PRIMARY KEY (LIN_ID), |
262 | 262 | KEY LIN_code (LIN_code(191)), |
263 | 263 | KEY TXN_ID (TXN_ID)"; |
264 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
265 | - $table_name = 'esp_log'; |
|
266 | - $sql = "LOG_ID int(11) NOT NULL AUTO_INCREMENT, |
|
264 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
265 | + $table_name = 'esp_log'; |
|
266 | + $sql = "LOG_ID int(11) NOT NULL AUTO_INCREMENT, |
|
267 | 267 | LOG_time datetime DEFAULT NULL, |
268 | 268 | OBJ_ID varchar(45) DEFAULT NULL, |
269 | 269 | OBJ_type varchar(45) DEFAULT NULL, |
@@ -274,9 +274,9 @@ discard block |
||
274 | 274 | KEY LOG_time (LOG_time), |
275 | 275 | KEY OBJ (OBJ_type,OBJ_ID), |
276 | 276 | KEY LOG_type (LOG_type)"; |
277 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
278 | - $table_name = 'esp_message'; |
|
279 | - $sql = "MSG_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
277 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
278 | + $table_name = 'esp_message'; |
|
279 | + $sql = "MSG_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
280 | 280 | GRP_ID int(10) unsigned NULL, |
281 | 281 | MSG_token varchar(255) NULL, |
282 | 282 | TXN_ID int(10) unsigned NULL, |
@@ -308,18 +308,18 @@ discard block |
||
308 | 308 | KEY STS_ID (STS_ID), |
309 | 309 | KEY MSG_created (MSG_created), |
310 | 310 | KEY MSG_modified (MSG_modified)"; |
311 | - $this->_table_is_new_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
312 | - $table_name = 'esp_message_template'; |
|
313 | - $sql = "MTP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
311 | + $this->_table_is_new_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
312 | + $table_name = 'esp_message_template'; |
|
313 | + $sql = "MTP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
314 | 314 | GRP_ID int(10) unsigned NOT NULL, |
315 | 315 | MTP_context varchar(50) NOT NULL, |
316 | 316 | MTP_template_field varchar(30) NOT NULL, |
317 | 317 | MTP_content text NOT NULL, |
318 | 318 | PRIMARY KEY (MTP_ID), |
319 | 319 | KEY GRP_ID (GRP_ID)"; |
320 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
321 | - $table_name = 'esp_message_template_group'; |
|
322 | - $sql = "GRP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
320 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
321 | + $table_name = 'esp_message_template_group'; |
|
322 | + $sql = "GRP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
323 | 323 | MTP_user_id int(10) NOT NULL DEFAULT '1', |
324 | 324 | MTP_name varchar(245) NOT NULL DEFAULT '', |
325 | 325 | MTP_description varchar(245) NOT NULL DEFAULT '', |
@@ -331,9 +331,9 @@ discard block |
||
331 | 331 | MTP_is_active tinyint(1) NOT NULL DEFAULT '1', |
332 | 332 | PRIMARY KEY (GRP_ID), |
333 | 333 | KEY MTP_user_id (MTP_user_id)"; |
334 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
335 | - $table_name = 'esp_payment'; |
|
336 | - $sql = "PAY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
334 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
335 | + $table_name = 'esp_payment'; |
|
336 | + $sql = "PAY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
337 | 337 | TXN_ID int(10) unsigned DEFAULT NULL, |
338 | 338 | STS_ID varchar(3) collate utf8_bin DEFAULT NULL, |
339 | 339 | PAY_timestamp datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
@@ -350,9 +350,9 @@ discard block |
||
350 | 350 | PRIMARY KEY (PAY_ID), |
351 | 351 | KEY PAY_timestamp (PAY_timestamp), |
352 | 352 | KEY TXN_ID (TXN_ID)"; |
353 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
354 | - $table_name = 'esp_payment_method'; |
|
355 | - $sql = "PMD_ID int(11) NOT NULL AUTO_INCREMENT, |
|
353 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
354 | + $table_name = 'esp_payment_method'; |
|
355 | + $sql = "PMD_ID int(11) NOT NULL AUTO_INCREMENT, |
|
356 | 356 | PMD_type varchar(124) DEFAULT NULL, |
357 | 357 | PMD_name varchar(255) DEFAULT NULL, |
358 | 358 | PMD_desc text, |
@@ -368,24 +368,24 @@ discard block |
||
368 | 368 | PRIMARY KEY (PMD_ID), |
369 | 369 | UNIQUE KEY PMD_slug_UNIQUE (PMD_slug), |
370 | 370 | KEY PMD_type (PMD_type)"; |
371 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
372 | - $table_name = "esp_ticket_price"; |
|
373 | - $sql = "TKP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
371 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
372 | + $table_name = "esp_ticket_price"; |
|
373 | + $sql = "TKP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
374 | 374 | TKT_ID int(10) unsigned NOT NULL, |
375 | 375 | PRC_ID int(10) unsigned NOT NULL, |
376 | 376 | PRIMARY KEY (TKP_ID), |
377 | 377 | KEY TKT_ID (TKT_ID), |
378 | 378 | KEY PRC_ID (PRC_ID)"; |
379 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
380 | - $table_name = "esp_ticket_template"; |
|
381 | - $sql = "TTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
379 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
380 | + $table_name = "esp_ticket_template"; |
|
381 | + $sql = "TTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
382 | 382 | TTM_name varchar(45) NOT NULL, |
383 | 383 | TTM_description text, |
384 | 384 | TTM_file varchar(45), |
385 | 385 | PRIMARY KEY (TTM_ID)"; |
386 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
387 | - $table_name = 'esp_question'; |
|
388 | - $sql = 'QST_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
386 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
387 | + $table_name = 'esp_question'; |
|
388 | + $sql = 'QST_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
389 | 389 | QST_display_text text NOT NULL, |
390 | 390 | QST_admin_label varchar(255) NOT NULL, |
391 | 391 | QST_system varchar(25) DEFAULT NULL, |
@@ -399,18 +399,18 @@ discard block |
||
399 | 399 | QST_deleted tinyint(2) unsigned NOT NULL DEFAULT 0, |
400 | 400 | PRIMARY KEY (QST_ID), |
401 | 401 | KEY QST_order (QST_order)'; |
402 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
403 | - $table_name = 'esp_question_group_question'; |
|
404 | - $sql = "QGQ_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
402 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
403 | + $table_name = 'esp_question_group_question'; |
|
404 | + $sql = "QGQ_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
405 | 405 | QSG_ID int(10) unsigned NOT NULL, |
406 | 406 | QST_ID int(10) unsigned NOT NULL, |
407 | 407 | QGQ_order int(10) unsigned NOT NULL DEFAULT 0, |
408 | 408 | PRIMARY KEY (QGQ_ID), |
409 | 409 | KEY QST_ID (QST_ID), |
410 | 410 | KEY QSG_ID_order (QSG_ID,QGQ_order)"; |
411 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
412 | - $table_name = 'esp_question_option'; |
|
413 | - $sql = "QSO_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
411 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
412 | + $table_name = 'esp_question_option'; |
|
413 | + $sql = "QSO_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
414 | 414 | QSO_value varchar(255) NOT NULL, |
415 | 415 | QSO_desc text NOT NULL, |
416 | 416 | QST_ID int(10) unsigned NOT NULL, |
@@ -420,9 +420,9 @@ discard block |
||
420 | 420 | PRIMARY KEY (QSO_ID), |
421 | 421 | KEY QST_ID (QST_ID), |
422 | 422 | KEY QSO_order (QSO_order)"; |
423 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
424 | - $table_name = 'esp_registration'; |
|
425 | - $sql = "REG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
423 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
424 | + $table_name = 'esp_registration'; |
|
425 | + $sql = "REG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
426 | 426 | EVT_ID bigint(20) unsigned NOT NULL, |
427 | 427 | ATT_ID bigint(20) unsigned NOT NULL, |
428 | 428 | TXN_ID int(10) unsigned NOT NULL, |
@@ -446,18 +446,18 @@ discard block |
||
446 | 446 | KEY TKT_ID (TKT_ID), |
447 | 447 | KEY EVT_ID (EVT_ID), |
448 | 448 | KEY STS_ID (STS_ID)"; |
449 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
450 | - $table_name = 'esp_registration_payment'; |
|
451 | - $sql = "RPY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
449 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
450 | + $table_name = 'esp_registration_payment'; |
|
451 | + $sql = "RPY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
452 | 452 | REG_ID int(10) unsigned NOT NULL, |
453 | 453 | PAY_ID int(10) unsigned NULL, |
454 | 454 | RPY_amount decimal(10,3) NOT NULL DEFAULT '0.00', |
455 | 455 | PRIMARY KEY (RPY_ID), |
456 | 456 | KEY REG_ID (REG_ID), |
457 | 457 | KEY PAY_ID (PAY_ID)"; |
458 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
459 | - $table_name = 'esp_state'; |
|
460 | - $sql = "STA_ID smallint(5) unsigned NOT NULL AUTO_INCREMENT, |
|
458 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
459 | + $table_name = 'esp_state'; |
|
460 | + $sql = "STA_ID smallint(5) unsigned NOT NULL AUTO_INCREMENT, |
|
461 | 461 | CNT_ISO varchar(2) collate utf8_bin NOT NULL, |
462 | 462 | STA_abbrev varchar(24) collate utf8_bin NOT NULL, |
463 | 463 | STA_name varchar(100) collate utf8_bin NOT NULL, |
@@ -465,9 +465,9 @@ discard block |
||
465 | 465 | PRIMARY KEY (STA_ID), |
466 | 466 | KEY STA_abbrev (STA_abbrev), |
467 | 467 | KEY CNT_ISO (CNT_ISO)"; |
468 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
469 | - $table_name = 'esp_status'; |
|
470 | - $sql = "STS_ID varchar(3) NOT NULL, |
|
468 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
469 | + $table_name = 'esp_status'; |
|
470 | + $sql = "STS_ID varchar(3) NOT NULL, |
|
471 | 471 | STS_code varchar(45) NOT NULL, |
472 | 472 | STS_type varchar(45) NOT NULL, |
473 | 473 | STS_can_edit tinyint(1) NOT NULL DEFAULT 0, |
@@ -475,9 +475,9 @@ discard block |
||
475 | 475 | STS_open tinyint(1) NOT NULL DEFAULT 1, |
476 | 476 | UNIQUE KEY STS_ID_UNIQUE (STS_ID), |
477 | 477 | KEY STS_type (STS_type)"; |
478 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
479 | - $table_name = 'esp_transaction'; |
|
480 | - $sql = "TXN_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
478 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
479 | + $table_name = 'esp_transaction'; |
|
480 | + $sql = "TXN_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
481 | 481 | TXN_timestamp datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
482 | 482 | TXN_total decimal(10,3) DEFAULT '0.00', |
483 | 483 | TXN_paid decimal(10,3) NOT NULL DEFAULT '0.00', |
@@ -489,9 +489,9 @@ discard block |
||
489 | 489 | PRIMARY KEY (TXN_ID), |
490 | 490 | KEY TXN_timestamp (TXN_timestamp), |
491 | 491 | KEY STS_ID (STS_ID)"; |
492 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
493 | - $table_name = 'esp_venue_meta'; |
|
494 | - $sql = "VNUM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
492 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
493 | + $table_name = 'esp_venue_meta'; |
|
494 | + $sql = "VNUM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
495 | 495 | VNU_ID bigint(20) unsigned NOT NULL DEFAULT 0, |
496 | 496 | VNU_address varchar(255) DEFAULT NULL, |
497 | 497 | VNU_address2 varchar(255) DEFAULT NULL, |
@@ -510,10 +510,10 @@ discard block |
||
510 | 510 | KEY VNU_ID (VNU_ID), |
511 | 511 | KEY STA_ID (STA_ID), |
512 | 512 | KEY CNT_ISO (CNT_ISO)"; |
513 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
514 | - //modified tables |
|
515 | - $table_name = "esp_price"; |
|
516 | - $sql = "PRC_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
513 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
514 | + //modified tables |
|
515 | + $table_name = "esp_price"; |
|
516 | + $sql = "PRC_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
517 | 517 | PRT_ID tinyint(3) unsigned NOT NULL, |
518 | 518 | PRC_amount decimal(10,3) NOT NULL DEFAULT '0.00', |
519 | 519 | PRC_name varchar(245) NOT NULL, |
@@ -526,9 +526,9 @@ discard block |
||
526 | 526 | PRC_parent int(10) unsigned DEFAULT 0, |
527 | 527 | PRIMARY KEY (PRC_ID), |
528 | 528 | KEY PRT_ID (PRT_ID)"; |
529 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
530 | - $table_name = "esp_price_type"; |
|
531 | - $sql = "PRT_ID tinyint(3) unsigned NOT NULL AUTO_INCREMENT, |
|
529 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
530 | + $table_name = "esp_price_type"; |
|
531 | + $sql = "PRT_ID tinyint(3) unsigned NOT NULL AUTO_INCREMENT, |
|
532 | 532 | PRT_name varchar(45) NOT NULL, |
533 | 533 | PBT_ID tinyint(3) unsigned NOT NULL DEFAULT '1', |
534 | 534 | PRT_is_percent tinyint(1) NOT NULL DEFAULT '0', |
@@ -537,9 +537,9 @@ discard block |
||
537 | 537 | PRT_deleted tinyint(1) NOT NULL DEFAULT '0', |
538 | 538 | UNIQUE KEY PRT_name_UNIQUE (PRT_name), |
539 | 539 | PRIMARY KEY (PRT_ID)"; |
540 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
541 | - $table_name = "esp_ticket"; |
|
542 | - $sql = "TKT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
540 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
541 | + $table_name = "esp_ticket"; |
|
542 | + $sql = "TKT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
543 | 543 | TTM_ID int(10) unsigned NOT NULL, |
544 | 544 | TKT_name varchar(245) NOT NULL DEFAULT '', |
545 | 545 | TKT_description text NOT NULL, |
@@ -561,9 +561,9 @@ discard block |
||
561 | 561 | TKT_deleted tinyint(1) NOT NULL DEFAULT '0', |
562 | 562 | PRIMARY KEY (TKT_ID), |
563 | 563 | KEY TKT_start_date (TKT_start_date)"; |
564 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
565 | - $table_name = 'esp_question_group'; |
|
566 | - $sql = 'QSG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
564 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
565 | + $table_name = 'esp_question_group'; |
|
566 | + $sql = 'QSG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
567 | 567 | QSG_name varchar(255) NOT NULL, |
568 | 568 | QSG_identifier varchar(100) NOT NULL, |
569 | 569 | QSG_desc text NULL, |
@@ -576,41 +576,41 @@ discard block |
||
576 | 576 | PRIMARY KEY (QSG_ID), |
577 | 577 | UNIQUE KEY QSG_identifier_UNIQUE (QSG_identifier), |
578 | 578 | KEY QSG_order (QSG_order)'; |
579 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
580 | - /** @var EE_DMS_Core_4_1_0 $script_4_1_defaults */ |
|
581 | - $script_4_1_defaults = EE_Registry::instance()->load_dms('Core_4_1_0'); |
|
582 | - //(because many need to convert old string states to foreign keys into the states table) |
|
583 | - $script_4_1_defaults->insert_default_states(); |
|
584 | - $script_4_1_defaults->insert_default_countries(); |
|
585 | - /** @var EE_DMS_Core_4_5_0 $script_4_5_defaults */ |
|
586 | - $script_4_5_defaults = EE_Registry::instance()->load_dms('Core_4_5_0'); |
|
587 | - $script_4_5_defaults->insert_default_price_types(); |
|
588 | - $script_4_5_defaults->insert_default_prices(); |
|
589 | - $script_4_5_defaults->insert_default_tickets(); |
|
590 | - /** @var EE_DMS_Core_4_6_0 $script_4_6_defaults */ |
|
591 | - $script_4_6_defaults = EE_Registry::instance()->load_dms('Core_4_6_0'); |
|
592 | - $script_4_6_defaults->add_default_admin_only_payments(); |
|
593 | - $script_4_6_defaults->insert_default_currencies(); |
|
594 | - /** @var EE_DMS_Core_4_8_0 $script_4_8_defaults */ |
|
595 | - $script_4_8_defaults = EE_Registry::instance()->load_dms('Core_4_8_0'); |
|
596 | - $script_4_8_defaults->verify_new_countries(); |
|
597 | - $script_4_8_defaults->verify_new_currencies(); |
|
598 | - return true; |
|
599 | - } |
|
579 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
580 | + /** @var EE_DMS_Core_4_1_0 $script_4_1_defaults */ |
|
581 | + $script_4_1_defaults = EE_Registry::instance()->load_dms('Core_4_1_0'); |
|
582 | + //(because many need to convert old string states to foreign keys into the states table) |
|
583 | + $script_4_1_defaults->insert_default_states(); |
|
584 | + $script_4_1_defaults->insert_default_countries(); |
|
585 | + /** @var EE_DMS_Core_4_5_0 $script_4_5_defaults */ |
|
586 | + $script_4_5_defaults = EE_Registry::instance()->load_dms('Core_4_5_0'); |
|
587 | + $script_4_5_defaults->insert_default_price_types(); |
|
588 | + $script_4_5_defaults->insert_default_prices(); |
|
589 | + $script_4_5_defaults->insert_default_tickets(); |
|
590 | + /** @var EE_DMS_Core_4_6_0 $script_4_6_defaults */ |
|
591 | + $script_4_6_defaults = EE_Registry::instance()->load_dms('Core_4_6_0'); |
|
592 | + $script_4_6_defaults->add_default_admin_only_payments(); |
|
593 | + $script_4_6_defaults->insert_default_currencies(); |
|
594 | + /** @var EE_DMS_Core_4_8_0 $script_4_8_defaults */ |
|
595 | + $script_4_8_defaults = EE_Registry::instance()->load_dms('Core_4_8_0'); |
|
596 | + $script_4_8_defaults->verify_new_countries(); |
|
597 | + $script_4_8_defaults->verify_new_currencies(); |
|
598 | + return true; |
|
599 | + } |
|
600 | 600 | |
601 | 601 | |
602 | 602 | |
603 | - /** |
|
604 | - * @return boolean |
|
605 | - */ |
|
606 | - public function schema_changes_after_migration() |
|
607 | - { |
|
608 | - return true; |
|
609 | - } |
|
603 | + /** |
|
604 | + * @return boolean |
|
605 | + */ |
|
606 | + public function schema_changes_after_migration() |
|
607 | + { |
|
608 | + return true; |
|
609 | + } |
|
610 | 610 | |
611 | 611 | |
612 | 612 | |
613 | - public function migration_page_hooks() |
|
614 | - { |
|
615 | - } |
|
613 | + public function migration_page_hooks() |
|
614 | + { |
|
615 | + } |
|
616 | 616 | } |
617 | 617 | \ No newline at end of file |