Changeset 1025850
- Timestamp:
- 11/14/2014 05:00:43 PM (11 years ago)
- Location:
- restaurant-manager/trunk
- Files:
-
- 2 edited
-
class-initialize.php (modified) (2 diffs)
-
class-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
restaurant-manager/trunk/class-initialize.php
r1025846 r1025850 42 42 43 43 // Perform any version-upgrade activities prior to activation (e.g. database changes) 44 //$this->_plugin->upgrade();44 $this->_plugin->upgrade(); 45 45 46 46 if (!$this->_plugin->is_installed()) { … … 82 82 //check if the plugin is installed before running 83 83 if ($this->_plugin->is_installed()) { 84 85 $this->_plugin->upgrade();86 84 87 85 $taurus_shortcode_extensions = new shortcode_extensions(); -
restaurant-manager/trunk/class-plugin.php
r1025846 r1025850 72 72 $result = $wpdb->update($wpdb->term_taxonomy, array('taxonomy' => 'syn_rest_diet'), array('taxonomy' => 'syn_dietary_type')); 73 73 $result = $wpdb->update($wpdb->term_taxonomy, array('taxonomy' => 'syn_rest_cuisine'), array('taxonomy' => 'syn_cuisine_type')); 74 }75 76 if (version_compare($this->plugin_installed_version(), '1.2.0') <= 0) {77 78 $events_data = new events_data();79 $events_data->create_table();80 81 $eventmeta_data = new eventmeta_data();82 $eventmeta_data->create_table();83 74 } 84 75 }
Note: See TracChangeset
for help on using the changeset viewer.