From e25e3629fb1ba84be79cc5ef0c987af3108c297a Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 14 Feb 2025 15:16:30 +0300 Subject: [PATCH] =?utf8?q?=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D1=8F?= =?utf8?q?=20=D1=81=D0=B1=D1=80=D0=BE=D1=81=D0=B0=20=D0=B8=D0=BD=D0=B4?= =?utf8?q?=D0=B5=D0=BA=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...table_drop_unique_product_id_in_prices.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 erp24/migrations/m250214_113003_alter_table_drop_unique_product_id_in_prices.php 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); + } +} -- 2.39.5