Explorar o código

新建时填入当前时间

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
badf91b5ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/install/db_insert_templet_cli.php

+ 1 - 1
public/app/install/db_insert_templet_cli.php

@@ -100,7 +100,7 @@ for ($from=$_from; $from <=$_to ; $from++) {
 	$row=0;
 	// 开始一个事务,关闭自动提交
 	$dbh->beginTransaction();
-	$query = "INSERT INTO "._TABLE_." ( book , paragraph, wid , word , real , type , gramma , part , style ) VALUES (?,?,?,?,?,?,?,?,?)";
+	$query = "INSERT INTO "._TABLE_." ( book , paragraph, wid , word , real , type , gramma , part , style, created_at,updated_at ) VALUES (?,?,?,?,?,?,?,?,?,now(),now())";
 	$stmt = $dbh->prepare($query);
 	if (!$stmt || ($stmt && $stmt->errorCode() != 0)) {
 		$error = $dbh->errorInfo();