Hi Guys

I'm busy with a module that I want the time to be set to the current i my database . My current code looks like this:

'timestamp' => array(
'type' => 'int',
'not null' => TRUE,
'description' => t('The unix timestamp of when this friends was invited'),
),

How do I change this to Mysql's Current Time Stamp Option

Comments

pobster’s picture

Reading between the lines (as your post doesn't really make a whole lot of sense!) I think this is what you're referring to; http://api.drupal.org/api/group/schemaapi/6

The 'type' you're looking for is 'datetime', but if you're only storing a unix timestamp then type 'int' is fine too.

Pobster

Wyze1’s picture

Thanks!

This was exactly what I was looking 4!

In Open Source I Trust! Everybody Else Must Pay Cash!