Created
June 15, 2010 10:00
-
-
Save and1truong/438938 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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