Browse Source

填充时用当前时间更新created_at updated_at

visuddhinanda 4 years ago
parent
commit
1e2cb4f425
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/deploy/migaration/20211125155600_word_statistics.php

+ 1 - 1
public/deploy/migaration/20211125155600_word_statistics.php

@@ -45,7 +45,7 @@ fwrite(STDOUT,"begin Transaction".PHP_EOL);
 
 
 $PDO_DEST->beginTransaction();
 $PDO_DEST->beginTransaction();
 
 
-$query = "INSERT INTO ".$dest_table." ( bookid , word , count , base , end1 , end2 , type , length ) VALUES ( ? , ? , ? , ? , ? , ? , ? , ? )";
+$query = "INSERT INTO ".$dest_table." ( bookid , word , count , base , end1 , end2 , type , length , created_at, updated_at ) VALUES ( ? , ? , ? , ? , ? , ? , ? , ?, now(),now() )";
 try{
 try{
 	$stmtDEST = $PDO_DEST->prepare($query);
 	$stmtDEST = $PDO_DEST->prepare($query);
 }catch(PDOException $e){
 }catch(PDOException $e){