]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix(ERP-292): CURRENT_TIMESTAMP вместо NOW() в миграции
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 17 Apr 2026 13:29:32 +0000 (16:29 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 17 Apr 2026 13:29:32 +0000 (16:29 +0300)
erp24/migrations/m260417_000001_create_products_1c_automark_predictions.php

index 934b69635e2f59dfb2209c79854e30f92462b416..c261788aa5986a4c4b4e319310118defafdcb973 100644 (file)
@@ -22,7 +22,7 @@ class m260417_000001_create_products_1c_automark_predictions extends Migration
             'method'      => $this->string(50)->notNull(),
             'status'      => $this->smallInteger()->notNull()->defaultValue(0),
             'approved_by' => $this->integer()->null(),
-            'created_at'  => $this->timestamp()->notNull()->defaultExpression('NOW()'),
+            'created_at'  => $this->timestamp()->notNull()->defaultExpression('CURRENT_TIMESTAMP'),
             'updated_at'  => $this->timestamp()->null(),
         ]);