update_sql

Versions
4.6 – 6
update_sql($sql)

▾ 63 functions call update_sql()

db_add_column in ./update.php
Add a column to a database using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.
db_change_column in ./update.php
Change a column definition using syntax appropriate for PostgreSQL. Save result of SQL commands in $ret array.
hook_update_N in developer/hooks/install.php
Perform a single update. For each patch which requires a database change add a new hook_update_N() which will be called by update.php.
system_update_110 in database/updates.inc
system_update_111 in database/updates.inc
system_update_112 in database/updates.inc
system_update_113 in database/updates.inc
system_update_114 in database/updates.inc
system_update_116 in database/updates.inc
system_update_117 in database/updates.inc
system_update_118 in database/updates.inc
system_update_120 in database/updates.inc
system_update_121 in database/updates.inc
system_update_122 in database/updates.inc
system_update_123 in database/updates.inc
system_update_124 in database/updates.inc
system_update_125 in database/updates.inc
system_update_127 in database/updates.inc
system_update_128 in database/updates.inc
system_update_129 in database/updates.inc
system_update_131 in database/updates.inc
system_update_132 in database/updates.inc
system_update_133 in database/updates.inc
system_update_134 in database/updates.inc
system_update_136 in database/updates.inc
system_update_137 in database/updates.inc
system_update_138 in database/updates.inc
system_update_139 in database/updates.inc
system_update_140 in database/updates.inc
system_update_143 in database/updates.inc
system_update_144 in database/updates.inc
system_update_145 in database/updates.inc
system_update_146 in database/updates.inc
system_update_147 in database/updates.inc
system_update_148 in database/updates.inc
system_update_149 in database/updates.inc
system_update_150 in database/updates.inc
system_update_151 in database/updates.inc
system_update_152 in database/updates.inc
system_update_153 in database/updates.inc
system_update_154 in database/updates.inc
system_update_155 in database/updates.inc
system_update_156 in database/updates.inc
system_update_157 in database/updates.inc
system_update_158 in database/updates.inc
system_update_159 in database/updates.inc
Retrieve data out of the old_revisions table and put into new revision system.
system_update_162 in database/updates.inc
system_update_163 in database/updates.inc
system_update_164 in database/updates.inc
system_update_166 in database/updates.inc
system_update_167 in database/updates.inc
system_update_168 in database/updates.inc
system_update_171 in database/updates.inc
system_update_173 in database/updates.inc
system_update_176 in database/updates.inc
system_update_180 in database/updates.inc
system_update_181 in database/updates.inc
system_update_182 in database/updates.inc
The lid field in pgSQL should not be UNIQUE, but an INDEX.
system_update_183 in database/updates.inc
Cid matching by MySQL should be case-sensitive.
system_update_184 in database/updates.inc
update_convert_table_utf8 in ./update.php
Convert a single MySQL table to UTF-8.
update_fix_system_table in ./update.php
update_fix_watchdog_115 in ./update.php
System update 115 changes the watchdog table, which breaks the update script's ability to use logging. This changes the table appropriately.

Code

./update.php, line 20

<?php
function update_sql($sql) {
  $result = db_query($sql);
  return array('success' => $result !== FALSE, 'query' => check_plain($sql));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.