Skip to content

Instantly share code, notes, and snippets.

@and1truong
Created June 15, 2010 10:00
Show Gist options
  • Save and1truong/438938 to your computer and use it in GitHub Desktop.
Save and1truong/438938 to your computer and use it in GitHub Desktop.
<?php
// $Id$
/**
* @see Schema API documentation: http://api.drupal.org/api/group/schemaapi/6
* @see http://api.drupal.org/api/function/drupal_get_schema/6
* @see http://api.drupal.org/api/function/db_add_field/6
*/
/**
* Implements hook_update_N().
*/
function w_update_1() {
$ret = array();
$table_schema = drupal_get_schema('site_inventory', TRUE);
db_add_field($ret, 'site_inventory', 'received_date', $table_schema['fields']['received_date']);
return $ret;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment