private static function fix_icl_string_packages_ID_column()
 {
     global $wpdb;
     self::$table_name = $wpdb->prefix . 'icl_string_packages';
     if (self::current_table_has_column('id')) {
         $sql = "ALTER TABLE `" . self::$table_name . "` CHANGE id ID BIGINT UNSIGNED NOT NULL auto_increment;";
         $wpdb->query($sql);
     }
 }
 private static function build_icl_string_packages_table()
 {
     global $wpdb;
     $charset_collate = self::build_charset_collate();
     self::$table_name = $wpdb->prefix . 'icl_string_packages';
     $sql = "\n                 CREATE TABLE IF NOT EXISTS `" . self::$table_name . "` (\n                  `ID` bigint(20) unsigned NOT NULL auto_increment,\n                  `kind_slug` varchar(160) NOT NULL,\n                  `kind` varchar(160) NOT NULL,\n                  `name` varchar(160) NOT NULL,\n                  `title` varchar(160) NOT NULL,\n                  `edit_link` TEXT DEFAULT '' NOT NULL,\n                  `view_link` TEXT DEFAULT '' NOT NULL,\n                  PRIMARY KEY  (`ID`)\n                ) " . $charset_collate . "";
     if ($wpdb->query($sql) === false) {
         throw new Exception($wpdb->last_error);
     }
 }
 private function run_db_update()
 {
     if (is_admin()) {
         WPML_Package_Translation_Schema::run_update();
     }
 }