| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 690 lines (26 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 6 files includes/install.inc modules/system/system.install includes/bootstrap.inc includes/batch.inc includes/module.inc includes/file.inc |
| db_add_column(&$ret, $table, $column, $type, $attributes = array() X-Ref |
| 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. param: $ret param: $table param: $column param: $type param: $attributes return: |
| db_change_column(&$ret, $table, $column, $column_new, $type, $attributes = array() X-Ref |
| 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. param: $ret param: $table param: $column param: $column_new param: $type param: $attributes return: |
| update_do_one($module, $number, &$context) X-Ref |
| 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. param: $module param: $number param: $context |
| update_selection_page() X-Ref |
| No description |
| update_script_selection_form() X-Ref |
| No description |
| update_batch() X-Ref |
| No description |
| update_finished($success, $results, $operations) X-Ref |
| No description |
| update_results_page() X-Ref |
| No description |
| update_info_page() X-Ref |
| No description |
| update_access_denied_page() X-Ref |
| No description |
| update_create_batch_table() X-Ref |
| Create the batch table. This is part of the Drupal 5.x to 6.x migration. |
| update_fix_compatibility() X-Ref |
| Disable anything in the {system} table that is not compatible with the current version of Drupal core. |
| update_check_incompatibility($name, $type = 'module') X-Ref |
| Helper function to test compatibility of a module or theme. |
| update_fix_d6_requirements() X-Ref |
| 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(). |
| update_task_list($active = NULL) X-Ref |
| Add the update task list to the current page. |
| update_check_requirements() X-Ref |
| Check update requirements and report any errors. |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |