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

  1. 7.x doxygen/html/update__6_8inc.html
  2. master doxygen/html/update__6_8inc.html
update_6.inc File Reference

Go to the source code of this file.

Functions

 db_add_column (&$ret, $table, $column, $type, $attributes=array())
 db_change_column (&$ret, $table, $column, $column_new, $type, $attributes=array())
 update_fix_compatibility ()
 update_check_incompatibility ($name, $type= 'module')
 update_fix_d6_requirements ()
 update_check_requirements ()
 update_create_batch_table ()
 update_main_prepare ()
 update_main ()
 _update_do_one ($module, $number, &$context)
 _update_batch_command ($id)
 updatedb_status ()

Variables

const MAINTENANCE_MODE = 'update'

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_6.inc.

Function Documentation

_update_do_one (   $module,
  $number,
$context 
)

A simplified version of the batch_do_one function from update.php

This does not mess with sessions and the like, as it will be used from the command line

Definition at line 436 of file update_6.inc.

References _drush_log_update_sql(), and drush_log().

Here is the call graph for this function:

db_add_column ( $ret,
  $table,
  $column,
  $type,
  $attributes = array() 
)

Add a column to a database using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.

Note: when you add a column with NOT NULL and you are not sure if there are already rows in the table, you MUST also add DEFAULT. Otherwise PostgreSQL won't work when the table is not empty, and db_add_column() will fail. To have an empty string as the default, you must use: 'default' => "''" in the $attributes array. If NOT NULL and DEFAULT are set the PostgreSQL version will set values of the added column in old rows to the DEFAULT value.

Parameters
$retArray to which results will be added.
$tableName of the table, without {}
$columnName of the column
$typeType of column
$attributesAdditional optional attributes. Recognized attributes: not null => TRUE|FALSE default => NULL|FALSE|value (the value must be enclosed in '' marks)
Returns
nothing, but modifies $ret parameter.

Definition at line 42 of file update_6.inc.

db_change_column ( $ret,
  $table,
  $column,
  $column_new,
  $type,
  $attributes = array() 
)

Change a column definition using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.

Remember that changing a column definition involves adding a new column and dropping an old one. This means that any indices, primary keys and sequences from serial-type columns are dropped and might need to be recreated.

Parameters
$retArray to which results will be added.
$tableName of the table, without {}
$columnName of the column to change
$column_newNew name for the column (set to the same as $column if you don't want to change the name)
$typeType of column
$attributesAdditional optional attributes. Recognized attributes: not null => TRUE|FALSE default => NULL|FALSE|value (with or without '', it won't be added)
Returns
nothing, but modifies $ret parameter.

Definition at line 98 of file update_6.inc.

update_check_incompatibility (   $name,
  $type = 'module' 
)

Helper function to test compatibility of a module or theme.

Definition at line 150 of file update_6.inc.

References drush_get_drupal_core_compatibility(), and drush_include_engine().

Referenced by update_fix_compatibility(), and updatedb_status().

Here is the call graph for this function:

Here is the caller graph for this function:

update_check_requirements ( )

Check update requirements and report any errors.

Definition at line 258 of file update_6.inc.

References drush_log().

Here is the call graph for this function:

update_create_batch_table ( )

Create the batch table.

This is part of the Drupal 5.x to 6.x migration.

Definition at line 282 of file update_6.inc.

update_fix_compatibility ( )

Disable anything in the {system} table that is not compatible with the current version of Drupal core.

Definition at line 129 of file update_6.inc.

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

Here is the call graph for this function:

update_fix_d6_requirements ( )

Perform Drupal 5.x to 6.x updates that are required for update.php to function properly.

This function runs when update.php is run the first time for 6.x, even before updates are selected or performed. It is important that if updates are not ultimately performed that no changes are made which make it impossible to continue using the prior version. Just adding columns is safe. However, renaming the system.description column to owner is not. Therefore, we add the system.owner column and leave it to system_update_6008() to copy the data from description and remove description. The same for renaming locales_target.locale to locales_target.language, which will be finished by locale_update_6002().

Definition at line 190 of file update_6.inc.

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 473 of file update_6.inc.

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

Here is the call graph for this function:

File

doxygen/html/update__6_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_6.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="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</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>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><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> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">update_6.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="update__6_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:a68749bcc3e7949ede51c5dd2db91f39e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#a68749bcc3e7949ede51c5dd2db91f39e">db_add_column</a> (&amp;$ret, $table, $column, $type, $attributes=array())</td></tr>
<tr class="memitem:af6bd7fe55aa398bb18266c56be8bf97b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#af6bd7fe55aa398bb18266c56be8bf97b">db_change_column</a> (&amp;$ret, $table, $column, $column_new, $type, $attributes=array())</td></tr>
<tr class="memitem:ab86cb0f00b89fc52f7f6294be9a1e33c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#ab86cb0f00b89fc52f7f6294be9a1e33c">update_fix_compatibility</a> ()</td></tr>
<tr class="memitem:a39592132a77fd791c44a8d6faf362cb0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#a39592132a77fd791c44a8d6faf362cb0">update_check_incompatibility</a> ($name, $type= 'module')</td></tr>
<tr class="memitem:af9abb57ca11fefe877843be4211307c4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#af9abb57ca11fefe877843be4211307c4">update_fix_d6_requirements</a> ()</td></tr>
<tr class="memitem:ad0b8cf7510033800502402c275add53b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#ad0b8cf7510033800502402c275add53b">update_check_requirements</a> ()</td></tr>
<tr class="memitem:a123fb38f4b7623d8ee5948c0d2e748eb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#a123fb38f4b7623d8ee5948c0d2e748eb">update_create_batch_table</a> ()</td></tr>
<tr class="memitem:acc82fc21a65c793b32cb4a75d836d030"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc82fc21a65c793b32cb4a75d836d030"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>update_main_prepare</b> ()</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:afc8cabc135ea5705d5fc503036c68678"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#afc8cabc135ea5705d5fc503036c68678">_update_do_one</a> ($module, $number, &amp;$context)</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:ad074fc63b51c042f4d752543db9ad0e6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="update__6_8inc.html#ad074fc63b51c042f4d752543db9ad0e6">updatedb_status</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a0849e56e1546e2b900cf36ef28e36e9f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0849e56e1546e2b900cf36ef28e36e9f"></a>
const&#160;</td><td class="memItemRight" valign="bottom"><b>MAINTENANCE_MODE</b> = 'update'</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__6_8inc_source.html">update_6.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="afc8cabc135ea5705d5fc503036c68678"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_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">&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>A simplified version of the batch_do_one function from update.php</p>
<p>This does not mess with sessions and the like, as it will be used from the command line </p>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00436">436</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

<p>References <a class="el" href="drupal_8inc_source.html#l00126">_drush_log_update_sql()</a>, and <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__6_8inc_afc8cabc135ea5705d5fc503036c68678_cgraph.png" border="0" usemap="#update__6_8inc_afc8cabc135ea5705d5fc503036c68678_cgraph" alt=""/></div>
<map name="update__6_8inc_afc8cabc135ea5705d5fc503036c68678_cgraph" id="update__6_8inc_afc8cabc135ea5705d5fc503036c68678_cgraph">
<area shape="rect" id="node3" href="drupal_8inc.html#abc6906957148e12e75f22aec44c45ec9" title="_drush_log_update_sql" alt="" coords="171,112,325,142"/><area shape="rect" id="node14" href="group__logging.html#ga2a8afad8eafb1382e24a5601bc962e71" title="drush_log" alt="" coords="587,139,664,168"/><area shape="rect" id="node5" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="373,62,485,91"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1105,87,1233,116"/><area shape="rect" id="node9" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="535,35,716,64"/><area shape="rect" id="node11" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="900,87,1055,116"/><area shape="rect" id="node16" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="765,139,851,168"/><area shape="rect" id="node19" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="929,191,1025,220"/><area shape="rect" id="node21" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1119,191,1220,220"/><area shape="rect" id="node23" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1284,191,1417,220"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a68749bcc3e7949ede51c5dd2db91f39e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">db_add_column </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$ret</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$attributes</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a column to a database using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.</p>
<p>Note: when you add a column with NOT NULL and you are not sure if there are already rows in the table, you MUST also add DEFAULT. Otherwise PostgreSQL won't work when the table is not empty, and <a class="el" href="update__6_8inc.html#a68749bcc3e7949ede51c5dd2db91f39e">db_add_column()</a> will fail. To have an empty string as the default, you must use: 'default' =&gt; "''" in the $attributes array. If NOT NULL and DEFAULT are set the PostgreSQL version will set values of the added column in old rows to the DEFAULT value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$ret</td><td>Array to which results will be added. </td></tr>
    <tr><td class="paramname">$table</td><td>Name of the table, without {} </td></tr>
    <tr><td class="paramname">$column</td><td>Name of the column </td></tr>
    <tr><td class="paramname">$type</td><td>Type of column </td></tr>
    <tr><td class="paramname">$attributes</td><td>Additional optional attributes. Recognized attributes: not null =&gt; TRUE|FALSE default =&gt; NULL|FALSE|value (the value must be enclosed in '' marks) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>nothing, but modifies $ret parameter. </dd></dl>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00042">42</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

</div>
</div>
<a class="anchor" id="af6bd7fe55aa398bb18266c56be8bf97b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">db_change_column </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$ret</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$column_new</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$attributes</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Change a column definition using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.</p>
<p>Remember that changing a column definition involves adding a new column and dropping an old one. This means that any indices, primary keys and sequences from serial-type columns are dropped and might need to be recreated.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$ret</td><td>Array to which results will be added. </td></tr>
    <tr><td class="paramname">$table</td><td>Name of the table, without {} </td></tr>
    <tr><td class="paramname">$column</td><td>Name of the column to change </td></tr>
    <tr><td class="paramname">$column_new</td><td>New name for the column (set to the same as $column if you don't want to change the name) </td></tr>
    <tr><td class="paramname">$type</td><td>Type of column </td></tr>
    <tr><td class="paramname">$attributes</td><td>Additional optional attributes. Recognized attributes: not null =&gt; TRUE|FALSE default =&gt; NULL|FALSE|value (with or without '', it won't be added) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>nothing, but modifies $ret parameter. </dd></dl>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00098">98</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

</div>
</div>
<a class="anchor" id="a39592132a77fd791c44a8d6faf362cb0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_check_incompatibility </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$type</em> = <code>'module'</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Helper function to test compatibility of a module or theme. </p>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00150">150</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

<p>References <a class="el" href="includes_2environment_8inc_source.html#l00857">drush_get_drupal_core_compatibility()</a>, and <a class="el" href="engines_8inc_source.html#l00510">drush_include_engine()</a>.</p>

<p>Referenced by <a class="el" href="update__6_8inc_source.html#l00129">update_fix_compatibility()</a>, and <a class="el" href="update__6_8inc_source.html#l00473">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__6_8inc_a39592132a77fd791c44a8d6faf362cb0_cgraph.png" border="0" usemap="#update__6_8inc_a39592132a77fd791c44a8d6faf362cb0_cgraph" alt=""/></div>
<map name="update__6_8inc_a39592132a77fd791c44a8d6faf362cb0_cgraph" id="update__6_8inc_a39592132a77fd791c44a8d6faf362cb0_cgraph">
<area shape="rect" id="node3" href="includes_2environment_8inc.html#a02b3e67cdaf5abc38c32b207ba2aee60" title="drush_get_drupal_core\l_compatibility" alt="" coords="249,146,401,193"/><area shape="rect" id="node5" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="252,216,399,245"/><area shape="rect" id="node7" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="451,112,581,141"/><area shape="rect" id="node13" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="669,165,781,195"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="707,269,744,299"/><area shape="rect" id="node49" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="465,216,567,245"/><area shape="rect" id="node56" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="457,269,575,299"/><area shape="rect" id="node9" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="631,5,820,35"/><area shape="rect" id="node45" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="647,59,804,88"/><area shape="rect" id="node47" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="649,112,801,141"/><area shape="rect" id="node11" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="871,29,1052,59"/><area shape="rect" id="node15" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1511,161,1639,191"/><area shape="rect" id="node18" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1301,135,1456,164"/><area shape="rect" id="node21" href="group__logging.html#ga2a8afad8eafb1382e24a5601bc962e71" title="drush_log" alt="" coords="923,187,1000,216"/><area shape="rect" id="node23" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1132,187,1217,216"/><area shape="rect" id="node26" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1331,239,1427,268"/><area shape="rect" id="node28" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1524,265,1625,295"/><area shape="rect" id="node30" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1689,265,1823,295"/><area shape="rect" id="node35" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="895,261,1028,307"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="892,331,1031,360"/><area shape="rect" id="node37" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1103,291,1247,320"/><area shape="rect" id="node40" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1296,343,1461,372"/></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__6_8inc_a39592132a77fd791c44a8d6faf362cb0_icgraph.png" border="0" usemap="#update__6_8inc_a39592132a77fd791c44a8d6faf362cb0_icgraph" alt=""/></div>
<map name="update__6_8inc_a39592132a77fd791c44a8d6faf362cb0_icgraph" id="update__6_8inc_a39592132a77fd791c44a8d6faf362cb0_icgraph">
<area shape="rect" id="node3" href="update__6_8inc.html#ab86cb0f00b89fc52f7f6294be9a1e33c" title="update_fix_compatibility" alt="" coords="248,5,411,35"/><area shape="rect" id="node5" href="update__6_8inc.html#ad074fc63b51c042f4d752543db9ad0e6" title="updatedb_status" alt="" coords="271,59,388,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad0b8cf7510033800502402c275add53b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_check_requirements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check update requirements and report any errors. </p>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00258">258</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__6_8inc_ad0b8cf7510033800502402c275add53b_cgraph.png" border="0" usemap="#update__6_8inc_ad0b8cf7510033800502402c275add53b_cgraph" alt=""/></div>
<map name="update__6_8inc_ad0b8cf7510033800502402c275add53b_cgraph" id="update__6_8inc_ad0b8cf7510033800502402c275add53b_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga2a8afad8eafb1382e24a5601bc962e71" title="drush_log" alt="" coords="241,31,319,60"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="368,31,453,60"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="708,5,836,35"/><area shape="rect" id="node9" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="532,84,628,113"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="503,31,657,60"/><area shape="rect" id="node11" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="721,84,823,113"/><area shape="rect" id="node13" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="887,84,1020,113"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a123fb38f4b7623d8ee5948c0d2e748eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_create_batch_table </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create the batch table.</p>
<p>This is part of the Drupal 5.x to 6.x migration. </p>

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

</div>
</div>
<a class="anchor" id="ab86cb0f00b89fc52f7f6294be9a1e33c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_fix_compatibility </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Disable anything in the {system} table that is not compatible with the current version of Drupal core. </p>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00129">129</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="output_8inc_source.html#l00147">dt()</a>, and <a class="el" href="update__6_8inc_source.html#l00150">update_check_incompatibility()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__6_8inc_ab86cb0f00b89fc52f7f6294be9a1e33c_cgraph.png" border="0" usemap="#update__6_8inc_ab86cb0f00b89fc52f7f6294be9a1e33c_cgraph" alt=""/></div>
<map name="update__6_8inc_ab86cb0f00b89fc52f7f6294be9a1e33c_cgraph" id="update__6_8inc_ab86cb0f00b89fc52f7f6294be9a1e33c_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga2a8afad8eafb1382e24a5601bc962e71" title="drush_log" alt="" coords="1133,336,1211,365"/><area shape="rect" id="node18" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="917,9,955,39"/><area shape="rect" id="node30" href="update__6_8inc.html#a39592132a77fd791c44a8d6faf362cb0" title="update_check_incompatibility" alt="" coords="217,145,409,175"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1343,336,1428,365"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1721,231,1849,260"/><area shape="rect" id="node9" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1541,387,1637,416"/><area shape="rect" id="node15" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1512,283,1667,312"/><area shape="rect" id="node11" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1735,309,1836,339"/><area shape="rect" id="node13" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1900,309,2033,339"/><area shape="rect" id="node20" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1105,58,1239,105"/><area shape="rect" id="node28" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1103,5,1241,35"/><area shape="rect" id="node22" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1313,179,1457,208"/><area shape="rect" id="node25" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1507,229,1672,259"/><area shape="rect" id="node32" href="includes_2environment_8inc.html#a02b3e67cdaf5abc38c32b207ba2aee60" title="drush_get_drupal_core\l_compatibility" alt="" coords="460,167,612,214"/><area shape="rect" id="node34" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="463,115,609,144"/><area shape="rect" id="node36" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="661,219,792,248"/><area shape="rect" id="node42" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="880,164,992,193"/><area shape="rect" id="node53" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="676,115,777,144"/><area shape="rect" id="node60" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="668,61,785,91"/><area shape="rect" id="node38" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="841,324,1031,353"/><area shape="rect" id="node49" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="857,217,1015,247"/><area shape="rect" id="node51" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="860,271,1012,300"/><area shape="rect" id="node40" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1081,283,1263,312"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af9abb57ca11fefe877843be4211307c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">update_fix_d6_requirements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Perform Drupal 5.x to 6.x updates that are required for update.php to function properly.</p>
<p>This function runs when update.php is run the first time for 6.x, even before updates are selected or performed. It is important that if updates are not ultimately performed that no changes are made which make it impossible to continue using the prior version. Just adding columns is safe. However, renaming the system.description column to owner is not. Therefore, we add the system.owner column and leave it to system_update_6008() to copy the data from description and remove description. The same for renaming locales_target.locale to locales_target.language, which will be finished by locale_update_6002(). </p>

<p>Definition at line <a class="el" href="update__6_8inc_source.html#l00190">190</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</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__6_8inc_source.html#l00473">473</a> of file <a class="el" href="update__6_8inc_source.html">update_6.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01501">drush_set_error()</a>, <a class="el" href="output_8inc_source.html#l00147">dt()</a>, and <a class="el" href="update__6_8inc_source.html#l00150">update_check_incompatibility()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="update__6_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph.png" border="0" usemap="#update__6_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph" alt=""/></div>
<map name="update__6_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph" id="update__6_8inc_ad074fc63b51c042f4d752543db9ad0e6_cgraph">
<area shape="rect" id="node3" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="837,165,949,195"/><area shape="rect" id="node24" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="875,323,912,352"/><area shape="rect" id="node36" href="update__6_8inc.html#a39592132a77fd791c44a8d6faf362cb0" title="update_check_incompatibility" alt="" coords="175,248,367,277"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1679,163,1807,192"/><area shape="rect" id="node7" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1039,19,1220,48"/><area shape="rect" id="node9" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1469,136,1624,165"/><area shape="rect" id="node12" href="group__logging.html#ga2a8afad8eafb1382e24a5601bc962e71" title="drush_log" alt="" coords="1091,188,1168,217"/><area shape="rect" id="node14" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1300,188,1385,217"/><area shape="rect" id="node17" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1499,240,1595,269"/><area shape="rect" id="node19" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1692,267,1793,296"/><area shape="rect" id="node21" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1857,267,1991,296"/><area shape="rect" id="node26" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1063,262,1196,309"/><area shape="rect" id="node34" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1060,332,1199,361"/><area shape="rect" id="node28" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1271,292,1415,321"/><area shape="rect" id="node31" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1464,344,1629,373"/><area shape="rect" id="node38" href="includes_2environment_8inc.html#a02b3e67cdaf5abc38c32b207ba2aee60" title="drush_get_drupal_core\l_compatibility" alt="" coords="417,270,569,317"/><area shape="rect" id="node40" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="420,217,567,247"/><area shape="rect" id="node42" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="619,63,749,92"/><area shape="rect" id="node53" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="633,271,735,300"/><area shape="rect" id="node60" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="625,217,743,247"/><area shape="rect" id="node44" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="799,5,988,35"/><area shape="rect" id="node49" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="815,59,972,88"/><area shape="rect" id="node51" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="817,112,969,141"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Mar 29 2016 07:27:31 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>