From fdec1756fc0d63551f71a26c4c787a7e2c3b57b3 Mon Sep 17 00:00:00 2001 From: fomichev Date: Thu, 30 Apr 2026 18:06:30 +0300 Subject: [PATCH] =?utf8?q?feat(ERP-292):=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0?= =?utf8?q?=D1=86=D0=B8=D1=8F=20=E2=80=94=20llm=5Fverdict,=20llm=5Fverified?= =?utf8?q?=5Fat,=20llm=5Fcomment?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...add_llm_fields_to_automark_predictions.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 erp24/migrations/m260430_000001_add_llm_fields_to_automark_predictions.php diff --git a/erp24/migrations/m260430_000001_add_llm_fields_to_automark_predictions.php b/erp24/migrations/m260430_000001_add_llm_fields_to_automark_predictions.php new file mode 100644 index 00000000..f0918610 --- /dev/null +++ b/erp24/migrations/m260430_000001_add_llm_fields_to_automark_predictions.php @@ -0,0 +1,40 @@ +addColumn( + 'products_1c_automark_predictions', + 'llm_verdict', + $this->string(20)->null()->defaultValue(null)->after('method') + ); + $this->addColumn( + 'products_1c_automark_predictions', + 'llm_verified_at', + $this->timestamp()->null()->defaultValue(null)->after('llm_verdict') + ); + $this->addColumn( + 'products_1c_automark_predictions', + 'llm_comment', + $this->string(500)->null()->defaultValue(null)->after('llm_verified_at') + ); + $this->createIndex( + 'idx_automark_llm_verdict', + 'products_1c_automark_predictions', + 'llm_verdict' + ); + } + + public function safeDown(): void + { + $this->dropIndex('idx_automark_llm_verdict', 'products_1c_automark_predictions'); + $this->dropColumn('products_1c_automark_predictions', 'llm_comment'); + $this->dropColumn('products_1c_automark_predictions', 'llm_verified_at'); + $this->dropColumn('products_1c_automark_predictions', 'llm_verdict'); + } +} -- 2.39.5