yanglin 6 years ago
parent
commit
146f531d77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      console/migrations/m180109_222941_user_log.php

+ 1 - 1
console/migrations/m180109_222941_user_log.php

@@ -25,7 +25,7 @@ class m180109_222941_user_log extends Migration
             'type'=>Schema::TYPE_STRING.'(200) NOT NULL COMMENT "操作类型(例:添加)"',
             'handle_id'=>Schema::TYPE_INTEGER.'(10) NOT NULL COMMENT "操作对象ID"',
             'result'=>Schema::TYPE_TEXT.' NOT NULL COMMENT "操作结果"',
-            'addtime'=>Schema::datetime.' NOT NULL COMMENT "操作时间"',
+            'addtime'=>Schema::TYPE_DATETIME.' NOT NULL COMMENT "操作时间"',
             'describe'=>Schema::TYPE_TEXT.' NOT NULL COMMENT "备注"',
 
         ], $tableOptions);