From: Alexander Smirnov Date: Fri, 14 Feb 2025 12:16:30 +0000 (+0300) Subject: миграция сброса индекса X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e25e3629fb1ba84be79cc5ef0c987af3108c297a;p=erp24_rep%2Fyii-erp24%2F.git миграция сброса индекса --- diff --git a/erp24/migrations/m250214_113003_alter_table_drop_unique_product_id_in_prices.php b/erp24/migrations/m250214_113003_alter_table_drop_unique_product_id_in_prices.php new file mode 100755 index 00000000..b41335e7 --- /dev/null +++ b/erp24/migrations/m250214_113003_alter_table_drop_unique_product_id_in_prices.php @@ -0,0 +1,30 @@ +dropIndex('idx_463248_primary', self::TABLE_NAME); + $this->dropIndex('idx_463248_product_id', self::TABLE_NAME); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->createIndex('idx_463248_primary', self::TABLE_NAME, 'product_id'); + $this->createIndex('idx_463248_product_id', self::TABLE_NAME, 'product_id', true); + } +}