9 Jun
2006
9 Jun
'06
3:30 p.m.
function modulename_schema() {
$tables['event']['#charset'] = 'utf8';
$tables['event']['nid'] = array( '#type' => DB_INT, '#dispwidth' => 10, '#signed' => FALSE, '#null' => FALSE, '#default' => '0');
$tables['event']['event_start'] = array(...);
...;
return $tables; }
Adrian Roussow is working on something like this already. This will make the schema more portable across PostgreSQL and MySQL and other databases. Check the previous discussion here http://lists.drupal.org/pipermail/development/2006-May/015962.html