From: fomichev Date: Thu, 28 Nov 2024 13:16:30 +0000 (+0300) Subject: Удаление миграции X-Git-Tag: 1.7~215^2~7 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d029932f15f3a0a2713e03370678402617ef338a;p=erp24_rep%2Fyii-erp24%2F.git Удаление миграции --- diff --git a/erp24/migrations/m241126_152940_add_fields_to_products_1c.php b/erp24/migrations/m241126_152940_add_fields_to_products_1c.php deleted file mode 100644 index d3b55f24..00000000 --- a/erp24/migrations/m241126_152940_add_fields_to_products_1c.php +++ /dev/null @@ -1,48 +0,0 @@ -addColumn(self::TABLE_NAME, 'product_type', $this->string()->null()->comment('Вид номенклатуры')); - $this->addColumn(self::TABLE_NAME, 'country_of_origin', $this->string()->null()->comment('Страна происхождения')); - $this->addColumn(self::TABLE_NAME, 'manufacturer', $this->string()->null()->comment('Производитель')); - $this->addColumn(self::TABLE_NAME, 'brand', $this->string()->null()->comment('Бренд')); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - $this->dropColumn(self::TABLE_NAME, 'product_type'); - $this->dropColumn(self::TABLE_NAME, 'country_of_origin'); - $this->dropColumn(self::TABLE_NAME, 'manufacturer'); - $this->dropColumn(self::TABLE_NAME, 'brand'); - } - - /* - // Use up()/down() to run migration code without a transaction. - public function up() - { - - } - - public function down() - { - echo "m241126_152940_add_fields_to_products_1c cannot be reverted.\n"; - - return false; - } - */ -}