From: fomichev Date: Thu, 30 Apr 2026 15:06:30 +0000 (+0300) Subject: feat(ERP-292): миграция — llm_verdict, llm_verified_at, llm_comment X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=fdec1756fc0d63551f71a26c4c787a7e2c3b57b3;p=erp24_rep%2Fyii-erp24%2F.git feat(ERP-292): миграция — llm_verdict, llm_verified_at, llm_comment --- 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'); + } +}