I have this code in .install
function annotate_schema() {
$schema['timesheets'] = array(
'description' => 'time sheet table',
'fields' => array(
'id' => array(
'description' => 'uniquie id',
'type' => 'serial',
'not null' => TRUE,
),
'empid' => array(
'description' => 'employee id',
'type' => 'int',
'not null' => TRUE,
),
'workdate' => array(
'description' => 'Work Date',
'type' => 'date',
'not null' => TRUE,
),
'hours' => array(
'description' => 'hours',
'type' => 'float',
'not null' => TRUE,
),
),
'primary key' => array('id'),
);
return $schema;
}
And I keep getting this error:
Notice: Undefined index: datetime:normal in DatabaseSchema_mysql->processField() (line 201 of C:\xampp\htdocs\drupaltest\includes\database\mysql\schema.inc).