hook_schema results in errors
Kartagis <[email protected]> Mon, 4 Feb 2013 19:57:16 +0200
| Newsgroups | gmane.comp.php.drupal.devel |
|---|---|
| Message-ID | <CAMAQ3nJKf7qF=yKavnn86XfhQghFR=eWHT7TDXv7EQFaqH-_QA@mail.gmail.com> |
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,