diff --git a/migrations/Version20260520040000.php b/migrations/Version20260520040000.php new file mode 100644 index 0000000..153c14e --- /dev/null +++ b/migrations/Version20260520040000.php @@ -0,0 +1,57 @@ +addSql('UPDATE app.prompt_templates SET body = :body, updated_at = NOW() WHERE key = :key', [ + 'body' => $body, + 'key' => 'vision_analyze', + ]); + } + + public function down(Schema $schema): void + { + $body = <<<'PROMPT' +Look at this nameplate/label photo of IT hardware. +Extract the manufacturer (brand), model number/designation, and serial number visible on the label. +Do not guess or add information not on the label. +Respond in exactly this format (use empty string if not visible): +MANUFACTURER: +MODEL: +SERIAL: +PROMPT; + + $this->addSql('UPDATE app.prompt_templates SET body = :body, updated_at = NOW() WHERE key = :key', [ + 'body' => $body, + 'key' => 'vision_analyze', + ]); + } +}