12 Jun
2007
12 Jun
'07
11:58 p.m.
One could minimize the code by making changes to the array rather than re-declaring the whole thing. Something like:
node_schema_6000() { $schema = node_schema_5000();
$schema['node']['fields']['newcolumn'] = array('type' => 'int', 'not null' => TRUE, 'default' => 1);
return $schema; }
The downside here is that there is nowhere a developer can look to find the current node_schema. Well, actually, schema.module can easily provide this, but (I suspect) developers would prefer to look at a file than visit a Drupal page for this info. Barry