Well, these files are pretty small compared to all the .module and .inc files, so I don't think that's an issue. 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; } node_schema_5000() { $schema['node'] = array( // define schema here ); return $schema; } -Peter On 6/12/07, andrew morton <drewish@katherinehouse.com> wrote:
The problem I see with #2 is that the .install files would quickly become huge. I'm imagining hook_schema() would have a big case statement with a complete copy of every version. I guess we don't need to load the .schema files often but it seems like it'd cause some memory issues when several are loaded.
andrew