[development] hook_schema results in errors

Kartagis tolga at ozses.net
Mon Feb 4 17:57:16 UTC 2013


Hi,

I've got the following schema,

function tcmb_schema() {
  $schema['tcmb'] = array(
    'fields' => array(
      'currency_name' => array(
        'type' => 'varchar',
        'length' => 50,
      ),
      'currency_symbol' => array(
        'type' => 'varchar',
        'length' => 3,
      ),
      'updated' => array(
        'mysql_type' => 'DATE',
      ),
      'buying' => array(
        'type' => 'numeric',
        'precision' => 6,
        'scale' => 4,
      ),
      'selling' => array(
        'type' => 'numeric',
        'precision' => 6,
        'scale' => 4,
      ),
    ),
  );
  return $schema;
}

However, this gives me:

 Field tcmb.updated: no Schema type for mysql type date.
    tcmb.updated: no type for Schema type :normal.
    Field tcmb.updated: no Schema type for type .

Am I missing something?

Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20130204/3e888e45/attachment.html 


More information about the development mailing list