Re: Created & Modified no longer set
Never figured it out exactly - was tons going on when this happened, but I changed all my created and modified to the values before with the NULL and then the trick was to delete the cache and I think that is when they started working. If that doesn't work for you, let me know and I'll try to retrace my steps. Chad On Tue, Feb 3, 2009 at 8:41 AM, Turgs wrote: > > Hi Chad > > Did you find your problem? > I've just realised I have the same issue (except I haven't upgraded > yet). > > Cheers > Turgs > > On Jan 31, 7:52 am, Chad Casselman wrote: > > This is the table: > > > > CREATE TABLE IF NOT EXISTS `requests` ( > > `id` int(11) NOT NULL auto_increment, > > `created` datetime default NULL, > > `modified` datetime default NULL, > > `user_id` int(11) NOT NULL default '0', > > `friend_id` int(11) NOT NULL default '0', > > `message` varchar(50) default NULL, > > PRIMARY KEY (`id`) > > ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=46 ; > > > > If I read the docs right those are the required settings for the dates, > no? > > > > Chad > > > > On Thu, Jan 29, 2009 at 10:44 PM, teknoid > wrote: > > > > > Any defaults set in the DB? > > > Cleared the model cache? > > > > > On Jan 29, 9:17 pm, Chad Casselman wrote: > > > > I just updated one of my apps with the latest of cakephp (just > replaced > > > the > > > > cake folder) and now when items are insert the created and modified > dates > > > > are set to all 0s. > > > > > > Any thoughts on this? > > > > > > Chad > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Created & Modified no longer set
Hi Chad Did you find your problem? I've just realised I have the same issue (except I haven't upgraded yet). Cheers Turgs On Jan 31, 7:52 am, Chad Casselman wrote: > This is the table: > > CREATE TABLE IF NOT EXISTS `requests` ( > `id` int(11) NOT NULL auto_increment, > `created` datetime default NULL, > `modified` datetime default NULL, > `user_id` int(11) NOT NULL default '0', > `friend_id` int(11) NOT NULL default '0', > `message` varchar(50) default NULL, > PRIMARY KEY (`id`) > ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=46 ; > > If I read the docs right those are the required settings for the dates, no? > > Chad > > On Thu, Jan 29, 2009 at 10:44 PM, teknoid wrote: > > > Any defaults set in the DB? > > Cleared the model cache? > > > On Jan 29, 9:17 pm, Chad Casselman wrote: > > > I just updated one of my apps with the latest of cakephp (just replaced > > the > > > cake folder) and now when items are insert the created and modified dates > > > are set to all 0s. > > > > Any thoughts on this? > > > > Chad > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Created & Modified no longer set
This is the table: CREATE TABLE IF NOT EXISTS `requests` ( `id` int(11) NOT NULL auto_increment, `created` datetime default NULL, `modified` datetime default NULL, `user_id` int(11) NOT NULL default '0', `friend_id` int(11) NOT NULL default '0', `message` varchar(50) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=46 ; If I read the docs right those are the required settings for the dates, no? Chad On Thu, Jan 29, 2009 at 10:44 PM, teknoid wrote: > > Any defaults set in the DB? > Cleared the model cache? > > On Jan 29, 9:17 pm, Chad Casselman wrote: > > I just updated one of my apps with the latest of cakephp (just replaced > the > > cake folder) and now when items are insert the created and modified dates > > are set to all 0s. > > > > Any thoughts on this? > > > > Chad > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Created & Modified no longer set
Any defaults set in the DB? Cleared the model cache? On Jan 29, 9:17 pm, Chad Casselman wrote: > I just updated one of my apps with the latest of cakephp (just replaced the > cake folder) and now when items are insert the created and modified dates > are set to all 0s. > > Any thoughts on this? > > Chad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---