![]() |
Myql Shema of deleted_at etc - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Myql Shema of deleted_at etc (/showthread.php?tid=75541) |
Myql Shema of deleted_at etc - ByteHive - 02-19-2020 Hey i want to use the timestamps function of the modle in which format has the colum to be ? RE: Myql Shema of deleted_at etc - php_rocs - 02-19-2020 @ByteHive, The db column should be a timestamp or are you talking about the PHP variable? RE: Myql Shema of deleted_at etc - dave friend - 02-21-2020 The schema datatype should be either a DATETIME or INTEGER (for a timestamp) and defined in the model’s $dateFormat property to match the schema. The default field name is deleted_at however this can be set to any name you want by using the $deletedField property. |