Drush: commands/core/drupal/update.inc File Reference

  1. 7.x doxygen/html/update_8inc.html
  2. master doxygen/html/update_8inc.html
update.inc File Reference

Go to the source code of this file.

Functions

 drush_update_do_one ($module, $number, $dependency_map, &$context)
 update_main ()
 _update_batch_command ($id)
 drush_update_batch ()
 drush_update_entity_definitions (&$context)
 drush_get_update_list ()
 drush_update_finished ($success, $results, $operations)
 updatedb_status ()
 entity_updates_main ()

Detailed Description

Update.php for provisioned sites. This file is a derivative of the standard drupal update.php, which has been modified to allow being run from the command line.

Definition in file update.inc.

Function Documentation

drush_update_batch ( )

Start the database update batch process.

Definition at line 180 of file update.inc.

References drush_backend_batch_process(), and drush_get_option().

Here is the call graph for this function:

drush_update_do_one (   $module,
  $number,
  $dependency_map,
$context 
)

Perform one update and store the results which will later be displayed on the finished page.

An update function can force the current and all later updates for this module to abort by returning a $ret array with an element like: $ret['#abort'] = array('success' => FALSE, 'query' => 'What went wrong'); The schema version will not be updated in this case, and all the aborted updates will continue to appear on update.php as updates that have not yet been run.

Parameters
$moduleThe module whose update will be run.
$numberThe update number to run.
$contextThe batch context array

Definition at line 39 of file update.inc.

References drush_log(), drush_set_error(), and dt().

Here is the call graph for this function:

drush_update_entity_definitions ( $context)

Apply entity schema updates.

Definition at line 248 of file update.inc.

drush_update_finished (   $success,
  $results,
  $operations 
)

Process and display any returned update output.

See Also
::batchFinished()
::results()

Definition at line 282 of file update.inc.

References drush_get_option(), drush_log(), drush_set_error(), and dt().

Here is the call graph for this function:

entity_updates_main ( )

Apply pending entity schema updates.

Definition at line 351 of file update.inc.

References drush_backend_batch_process(), drush_confirm(), drush_log(), drush_print(), drush_user_abort(), and dt().

Referenced by drush_core_entity_updates().

Here is the call graph for this function:

Here is the caller graph for this function:

updatedb_status ( )

Return a 2 item array with

  • an array where each item is a 3 item associative array describing a pending update.
  • an array listing the first update to run, keyed by module.

Definition at line 317 of file update.inc.

References dt().

Referenced by drush_core_updatedb_status().

Here is the call graph for this function:

Here is the caller graph for this function:

File

doxygen/html/update_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: commands/core/drupal/update.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_afac61274991793aa7e9133a8f4f291e.html">commands</a></li><li class="navelem"><a class="el" href="dir_5762b63965e3a68a35f77c23b4dd4668.html">core</a></li><li class="navelem"><a class="el" href="dir_124c2f0cfa86b0affb712ae9b365039b.html">drupal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">update.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="update_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7037652ade962feda993c9ddd041a950"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update_8inc.html#a7037652ade962feda993c9ddd041a950">drush_update_do_one</a> ($module, $number, $dependency_map, &amp;$context)</td></tr>
<tr class="memitem:a574648d51380ddfa3be7b236754054e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a574648d51380ddfa3be7b236754054e9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>update_main</b> ()</td></tr>
<tr class="memitem:aaed89a38f4f9ba9d8a82bffe44539bdf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaed89a38f4f9ba9d8a82bffe44539bdf"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_update_batch_command</b> ($id)</td></tr>
<tr class="memitem:a9d3453110a57090b86046f2e442287ed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update_8inc.html#a9d3453110a57090b86046f2e442287ed">drush_update_batch</a> ()</td></tr>
<tr class="memitem:ae66700aba90420adf4ef0b6fb6161394"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update_8inc.html#ae66700aba90420adf4ef0b6fb6161394">drush_update_entity_definitions</a> (&amp;$context)</td></tr>
<tr class="memitem:aa97c69483baf230c7939c9ae62f15a9b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa97c69483baf230c7939c9ae62f15a9b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_get_update_list</b> ()</td></tr>
<tr class="memitem:ad6ef60e0ddad8b4b6b4321c4c5b0e003"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update_8inc.html#ad6ef60e0ddad8b4b6b4321c4c5b0e003">drush_update_finished</a> ($success, $results, $operations)</td></tr>
<tr class="memitem:ad074fc63b51c042f4d752543db9ad0e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update_8inc.html#ad074fc63b51c042f4d752543db9ad0e6">updatedb_status</a> ()</td></tr>
<tr class="memitem:a32ab583b70acb38949ea75843692b3ed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update_8inc.html#a32ab583b70acb38949ea75843692b3ed">entity_updates_main</a> ()</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Update.php for provisioned sites. This file is a derivative of the standard drupal update.php, which has been modified to allow being run from the command line. </p>

<p>Definition in file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a9d3453110a57090b86046f2e442287ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_update_batch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Start the database update batch process. </p>

<p>Definition at line <a class="el" href="update_8inc_source.html#l00180">180</a> of file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>

<p>References <a class="el" href="includes_2batch_8inc_source.html#l00075">drush_backend_batch_process()</a>, and <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_a9d3453110a57090b86046f2e442287ed_cgraph.png" border="0" usemap="#update_8inc_a9d3453110a57090b86046f2e442287ed_cgraph" alt=""/></div>
<map name="update_8inc_a9d3453110a57090b86046f2e442287ed_cgraph" id="update_8inc_a9d3453110a57090b86046f2e442287ed_cgraph">
<area shape="rect" id="node3" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="192,111,341,158"/><area shape="rect" id="node64" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="207,357,327,387"/><area shape="rect" id="node5" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="392,120,539,149"/><area shape="rect" id="node61" href="user_8drush_8inc.html#a9391875688c0d7b0ba392d6e0adbe704" title="drush_user_get_class" alt="" coords="391,41,540,71"/><area shape="rect" id="node7" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="589,224,720,253"/><area shape="rect" id="node13" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="808,171,920,200"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="845,67,883,96"/><area shape="rect" id="node49" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="604,120,705,149"/><area shape="rect" id="node56" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="596,16,713,45"/><area shape="rect" id="node9" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="769,331,959,360"/><area shape="rect" id="node45" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="785,277,943,307"/><area shape="rect" id="node47" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="788,224,940,253"/><area shape="rect" id="node11" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1009,329,1191,359"/><area shape="rect" id="node15" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1649,223,1777,252"/><area shape="rect" id="node18" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1440,223,1595,252"/><area shape="rect" id="node21" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1061,171,1139,200"/><area shape="rect" id="node23" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1271,171,1356,200"/><area shape="rect" id="node26" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1469,119,1565,148"/><area shape="rect" id="node28" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1663,67,1764,96"/><area shape="rect" id="node30" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1828,67,1961,96"/><area shape="rect" id="node35" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1033,58,1167,105"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1031,5,1169,35"/><area shape="rect" id="node37" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1241,67,1385,96"/><area shape="rect" id="node40" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1435,15,1600,44"/><area shape="rect" id="node66" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="401,435,529,464"/><area shape="rect" id="node69" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="391,331,540,360"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7037652ade962feda993c9ddd041a950"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_update_do_one </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$module</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$dependency_map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Perform one update and store the results which will later be displayed on the finished page.</p>
<p>An update function can force the current and all later updates for this module to abort by returning a $ret array with an element like: $ret['#abort'] = array('success' =&gt; FALSE, 'query' =&gt; 'What went wrong'); The schema version will not be updated in this case, and all the aborted updates will continue to appear on update.php as updates that have not yet been run.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$module</td><td>The module whose update will be run. </td></tr>
    <tr><td class="paramname">$number</td><td>The update number to run. </td></tr>
    <tr><td class="paramname">$context</td><td>The batch context array </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="update_8inc_source.html#l00039">39</a> of file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_a7037652ade962feda993c9ddd041a950_cgraph.png" border="0" usemap="#update_8inc_a7037652ade962feda993c9ddd041a950_cgraph" alt=""/></div>
<map name="update_8inc_a7037652ade962feda993c9ddd041a950_cgraph" id="update_8inc_a7037652ade962feda993c9ddd041a950_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="416,134,493,163"/><area shape="rect" id="node18" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="203,82,315,111"/><area shape="rect" id="node25" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="240,195,277,225"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="625,134,711,163"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1004,109,1132,138"/><area shape="rect" id="node9" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="824,237,920,266"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="795,82,949,111"/><area shape="rect" id="node11" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1017,263,1119,293"/><area shape="rect" id="node13" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1183,263,1316,293"/><area shape="rect" id="node21" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="364,30,545,59"/><area shape="rect" id="node27" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="388,187,521,233"/><area shape="rect" id="node35" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="385,257,524,286"/><area shape="rect" id="node29" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="596,195,740,225"/><area shape="rect" id="node32" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="789,290,955,319"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae66700aba90420adf4ef0b6fb6161394"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_update_entity_definitions </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$context</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Apply entity schema updates. </p>

<p>Definition at line <a class="el" href="update_8inc_source.html#l00248">248</a> of file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>

</div>
</div>
<a class="anchor" id="ad6ef60e0ddad8b4b6b4321c4c5b0e003"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_update_finished </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$success</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$results</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$operations</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Process and display any returned update output.</p>
<dl class="section see"><dt>See Also</dt><dd>::batchFinished() </dd>
<dd>
::results() </dd></dl>

<p>Definition at line <a class="el" href="update_8inc_source.html#l00282">282</a> of file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_ad6ef60e0ddad8b4b6b4321c4c5b0e003_cgraph.png" border="0" usemap="#update_8inc_ad6ef60e0ddad8b4b6b4321c4c5b0e003_cgraph" alt=""/></div>
<map name="update_8inc_ad6ef60e0ddad8b4b6b4321c4c5b0e003_cgraph" id="update_8inc_ad6ef60e0ddad8b4b6b4321c4c5b0e003_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="207,85,327,115"/><area shape="rect" id="node11" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="429,215,507,244"/><area shape="rect" id="node25" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="211,267,323,296"/><area shape="rect" id="node32" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="248,431,285,460"/><area shape="rect" id="node5" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="404,5,532,35"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1017,267,1145,296"/><area shape="rect" id="node9" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="393,59,543,88"/><area shape="rect" id="node13" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="639,213,724,243"/><area shape="rect" id="node16" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="837,213,933,243"/><area shape="rect" id="node22" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="808,267,963,296"/><area shape="rect" id="node18" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1031,371,1132,400"/><area shape="rect" id="node20" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1196,371,1329,400"/><area shape="rect" id="node28" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="377,369,559,399"/><area shape="rect" id="node34" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="401,422,535,469"/><area shape="rect" id="node42" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="399,492,537,521"/><area shape="rect" id="node36" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="609,421,753,451"/><area shape="rect" id="node39" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="803,421,968,451"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a32ab583b70acb38949ea75843692b3ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">entity_updates_main </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Apply pending entity schema updates. </p>

<p>Definition at line <a class="el" href="update_8inc_source.html#l00351">351</a> of file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>

<p>References <a class="el" href="includes_2batch_8inc_source.html#l00075">drush_backend_batch_process()</a>, <a class="el" href="drush_8inc_source.html#l00395">drush_confirm()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="output_8inc_source.html#l00028">drush_print()</a>, <a class="el" href="drush_8inc_source.html#l01603">drush_user_abort()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="core_8drush_8inc_source.html#l00437">drush_core_entity_updates()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_a32ab583b70acb38949ea75843692b3ed_cgraph.png" border="0" usemap="#update_8inc_a32ab583b70acb38949ea75843692b3ed_cgraph" alt=""/></div>
<map name="update_8inc_a32ab583b70acb38949ea75843692b3ed_cgraph" id="update_8inc_a32ab583b70acb38949ea75843692b3ed_cgraph">
<area shape="rect" id="node3" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="197,259,347,306"/><area shape="rect" id="node21" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1064,383,1141,412"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="848,320,885,349"/><area shape="rect" id="node64" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="220,600,324,629"/><area shape="rect" id="node68" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="615,575,700,604"/><area shape="rect" id="node81" href="group__errorhandling.html#ga366aaafdf8c774a58653c64a65b6d91c" title="drush_user_abort" alt="" coords="596,473,719,503"/><area shape="rect" id="node5" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="396,215,543,244"/><area shape="rect" id="node61" href="user_8drush_8inc.html#a9391875688c0d7b0ba392d6e0adbe704" title="drush_user_get_class" alt="" coords="395,268,544,297"/><area shape="rect" id="node7" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="592,111,723,140"/><area shape="rect" id="node13" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="811,165,923,195"/><area shape="rect" id="node49" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="607,215,708,244"/><area shape="rect" id="node56" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="599,268,716,297"/><area shape="rect" id="node9" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="772,5,961,35"/><area shape="rect" id="node45" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="788,59,945,88"/><area shape="rect" id="node47" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="791,112,943,141"/><area shape="rect" id="node11" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1012,56,1193,85"/><area shape="rect" id="node15" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1652,419,1780,448"/><area shape="rect" id="node18" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1443,313,1597,343"/><area shape="rect" id="node23" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1273,375,1359,404"/><area shape="rect" id="node26" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1472,367,1568,396"/><area shape="rect" id="node28" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1665,288,1767,317"/><area shape="rect" id="node30" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1831,288,1964,317"/><area shape="rect" id="node35" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1036,259,1169,306"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1033,329,1172,359"/><area shape="rect" id="node37" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1244,209,1388,239"/><area shape="rect" id="node40" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1437,209,1603,239"/><area shape="rect" id="node66" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="403,575,536,604"/><area shape="rect" id="node70" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="807,575,927,604"/><area shape="rect" id="node72" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1039,628,1167,657"/><area shape="rect" id="node75" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1028,575,1177,604"/><area shape="rect" id="node83" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1252,469,1380,499"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_a32ab583b70acb38949ea75843692b3ed_icgraph.png" border="0" usemap="#update_8inc_a32ab583b70acb38949ea75843692b3ed_icgraph" alt=""/></div>
<map name="update_8inc_a32ab583b70acb38949ea75843692b3ed_icgraph" id="update_8inc_a32ab583b70acb38949ea75843692b3ed_icgraph">
<area shape="rect" id="node3" href="core_8drush_8inc.html#af9e3ee874296f0d45567d5e4eb08e25a" title="drush_core_entity_updates" alt="" coords="197,5,376,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad074fc63b51c042f4d752543db9ad0e6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">updatedb_status </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return a 2 item array with</p>
<ul>
<li>an array where each item is a 3 item associative array describing a pending update.</li>
<li>an array listing the first update to run, keyed by module. </li>
</ul>

<p>Definition at line <a class="el" href="update_8inc_source.html#l00317">317</a> of file <a class="el" href="update_8inc_source.html">update.inc</a>.</p>

<p>References <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="core_8drush_8inc_source.html#l00477">drush_core_updatedb_status()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph.png" border="0" usemap="#update_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph" alt=""/></div>
<map name="update_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph" id="update_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph">
<area shape="rect" id="node3" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="175,63,212,92"/><area shape="rect" id="node5" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="264,23,397,70"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="261,93,400,123"/><area shape="rect" id="node7" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="449,32,593,61"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="661,5,789,35"/><area shape="rect" id="node11" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="643,59,808,88"/><area shape="rect" id="node13" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="857,59,959,88"/><area shape="rect" id="node15" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1009,59,1143,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update_8inc_ad074fc63b51c042f4d752543db9ad0e6_icgraph.png" border="0" usemap="#update_8inc_ad074fc63b51c042f4d752543db9ad0e6_icgraph" alt=""/></div>
<map name="update_8inc_ad074fc63b51c042f4d752543db9ad0e6_icgraph" id="update_8inc_ad074fc63b51c042f4d752543db9ad0e6_icgraph">
<area shape="rect" id="node3" href="core_8drush_8inc.html#aefd8feb109bb44eb6543dbd18f64b91b" title="drush_core_updatedb\l_status" alt="" coords="173,5,320,51"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:29:21 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>