From 8f9e56cd57f5ca67ae18447a11fd0cc0d698f401 Mon Sep 17 00:00:00 2001 From: Zike Date: Fri, 3 Nov 2023 11:39:22 -0400 Subject: [PATCH] Update Migration.php dynamic insert timestamp in the csv .dat file. --- src/Mvc/Model/Migration.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mvc/Model/Migration.php b/src/Mvc/Model/Migration.php index c352f23..261d261 100644 --- a/src/Mvc/Model/Migration.php +++ b/src/Mvc/Model/Migration.php @@ -55,6 +55,7 @@ use function sprintf; use function stripslashes; use function strtolower; +use function time; use const DIRECTORY_SEPARATOR; @@ -812,7 +813,9 @@ static function ($value) { if (null === $value || $value === 'NULL') { return 'NULL'; } - + if ($value == 'time()') { + return time(); + } return self::$connection->escapeString(stripslashes($value)); }, $line