update_sql

Versions
4.6 – 6
update_sql($sql)

▾ 81 functions call update_sql()

blogapi_update_5000 in modules/blogapi/blogapi.install
Add blogapi_files table to enable size restriction for BlogAPI file uploads.
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.
statistics_update_1000 in modules/statistics/statistics.install
Changes session ID field to VARCHAR(64) to add support for SHA-1 hashes.
system_update_1000 in modules/system/system.install
system_update_1001 in modules/system/system.install
system_update_1002 in modules/system/system.install
system_update_1003 in modules/system/system.install
system_update_1004 in modules/system/system.install
system_update_1005 in modules/system/system.install
system_update_1006 in modules/system/system.install
system_update_1007 in modules/system/system.install
system_update_1008 in modules/system/system.install
Performance update for queries that are related to the locale.module
system_update_1010 in modules/system/system.install
system_update_1011 in modules/system/system.install
system_update_1012 in modules/system/system.install
system_update_1013 in modules/system/system.install
system_update_1015 in modules/system/system.install
Add an index on watchdog type.
system_update_1016 in modules/system/system.install
Allow for longer URL encoded (%NN) UTF-8 characters in the location field of watchdog table.
system_update_1017 in modules/system/system.install
Allow role names to be up to 64 characters.
system_update_1020 in modules/system/system.install
Change break tag back (was removed from head).
system_update_1022 in modules/system/system.install
Add index on users created column.
system_update_110 in modules/system/system.install
system_update_111 in modules/system/system.install
system_update_112 in modules/system/system.install
system_update_113 in modules/system/system.install
system_update_114 in modules/system/system.install
system_update_116 in modules/system/system.install
system_update_117 in modules/system/system.install
system_update_118 in modules/system/system.install
system_update_121 in modules/system/system.install
system_update_122 in modules/system/system.install
system_update_123 in modules/system/system.install
system_update_124 in modules/system/system.install
system_update_125 in modules/system/system.install
system_update_127 in modules/system/system.install
system_update_128 in modules/system/system.install
system_update_129 in modules/system/system.install
system_update_131 in modules/system/system.install
system_update_132 in modules/system/system.install
system_update_133 in modules/system/system.install
system_update_134 in modules/system/system.install
system_update_136 in modules/system/system.install
system_update_137 in modules/system/system.install
system_update_138 in modules/system/system.install
system_update_139 in modules/system/system.install
system_update_140 in modules/system/system.install
system_update_143 in modules/system/system.install
system_update_144 in modules/system/system.install
system_update_145 in modules/system/system.install
system_update_146 in modules/system/system.install
system_update_147 in modules/system/system.install
system_update_148 in modules/system/system.install
system_update_149 in modules/system/system.install
system_update_150 in modules/system/system.install
system_update_151 in modules/system/system.install
system_update_152 in modules/system/system.install
system_update_153 in modules/system/system.install
system_update_154 in modules/system/system.install
system_update_155 in modules/system/system.install
system_update_156 in modules/system/system.install
system_update_157 in modules/system/system.install
system_update_158 in modules/system/system.install
system_update_159 in modules/system/system.install
Retrieve data out of the old_revisions table and put into new revision system.
system_update_162 in modules/system/system.install
system_update_163 in modules/system/system.install
system_update_164 in modules/system/system.install
system_update_166 in modules/system/system.install
system_update_167 in modules/system/system.install
system_update_168 in modules/system/system.install
system_update_171 in modules/system/system.install
system_update_173 in modules/system/system.install
system_update_176 in modules/system/system.install
system_update_180 in modules/system/system.install
system_update_181 in modules/system/system.install
system_update_182 in modules/system/system.install
The lid field in pgSQL should not be UNIQUE, but an INDEX.
update_convert_table_utf8 in ./update.php
Convert a single MySQL table to UTF-8.
update_create_cache_tables in ./update.php
Create tables for the split cache.
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.