upgrade_schema = $upgrade_schema; } public function run() { $table = 'icl_string_packages'; $column = 'word_count'; $result = false; if ( $this->upgrade_schema->does_table_exist( $table ) && ! $this->upgrade_schema->does_column_exist( $table, $column ) ) { $result = $this->upgrade_schema->add_column( $table, $column, 'VARCHAR(2000) DEFAULT NULL' ); } return false !== $result; } public function run_ajax() { return $this->run(); } public function run_frontend() { return $this->run(); } /** * @return string */ public static function get_command_id() { return __CLASS__; } }