From: Alexander Smirnov Date: Thu, 28 Nov 2024 14:43:59 +0000 (+0300) Subject: [ERP-251] поправка миграции X-Git-Tag: 1.7~218^2~6 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=b051f64bf44b52836b7528cbc58fbc487722a410;p=erp24_rep%2Fyii-erp24%2F.git [ERP-251] поправка миграции --- diff --git a/erp24/migrations/m241128_143840_alter_table_matrix_erp_alter_column_updated_at_created_at.php b/erp24/migrations/m241128_143840_alter_table_matrix_erp_alter_column_updated_at_created_at.php new file mode 100755 index 00000000..e95f3533 --- /dev/null +++ b/erp24/migrations/m241128_143840_alter_table_matrix_erp_alter_column_updated_at_created_at.php @@ -0,0 +1,28 @@ +dropColumn(self::TABLE_NAME, 'created_at'); + $this->dropColumn(self::TABLE_NAME, 'updated_at'); + $this->addColumn(self::TABLE_NAME, 'created_at', $this->dateTime()->null()->comment('Дата и время ооздания')); + $this->addColumn(self::TABLE_NAME, 'updated_at', $this->dateTime()->null()->comment('Дата и время обновления')); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + } +}