Remove 'default' => 'CURRENT_TIMESTAMP'

It still gets added at the DB-level somehow (by some blackmagic
'###START_AUTOCODE' fuckery would be my guess), but we can't have it in
PHP code othewise DB_DataObject barfs... It's great.

Ref. #4
master
Chimo 5 years ago
parent cbd4c0be96
commit c9787f8c46
No known key found for this signature in database
GPG Key ID: B0C36EDD0BB35A9C

@ -44,7 +44,7 @@ class Usage_stats extends Managed_DataObject
'type' => ['type' => 'varchar', 'length' => 191, 'description' => 'Type of countable entity'],
'count' => ['type' => 'int', 'size' => 'int', 'default' => 0, 'description' => 'Number of entities of this type'],
'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'],
],
'primary key' => ['type'],
'unique keys' => [