--- /dev/null
+<?php
+
+declare(strict_types=1);
+
+use yii\db\Migration;
+
+class m260430_000001_add_llm_fields_to_automark_predictions extends Migration
+{
+ public function safeUp(): void
+ {
+ $this->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');
+ }
+}