]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
change created_at in migration
authorvladfo <fvv2011@gmail.com>
Fri, 19 Jul 2024 13:19:48 +0000 (16:19 +0300)
committervladfo <fvv2011@gmail.com>
Fri, 19 Jul 2024 13:19:48 +0000 (16:19 +0300)
erp24/migrations/m240719_090134_create_motivation_values_table.php

index f87eb3ed52a6aadbb0a93f0e9f9f4efb84bf2481..bf9022ef20c90587a64b41eae76c612752386b16 100644 (file)
@@ -23,8 +23,8 @@ class m240719_090134_create_motivation_values_table extends Migration
             'name' => $this->string()->notNull(),
             'data_type' => "data_type_enum NOT NULL",
             'is_active' => $this->boolean()->defaultValue(true),
-            'created_at' => $this->timestamp()->defaultExpression('CURRENT_TIMESTAMP'),
-            'updated_at' => $this->timestamp()->defaultExpression('CURRENT_TIMESTAMP'),
+            'created_at' => $this->datetime()->notNull()->comment('дата создания записи'),
+            'updated_at' => $this->datetime()->notNull()->comment('дата изменения записи'),
         ]);
 
         $this->createIndex('idx-motivation_values-name', '{{%motivation_values}}', 'name', true);