added new rml features

This commit is contained in:
2025-08-12 16:26:37 +02:00
parent 8045a80b50
commit ffed33c4b2
5 changed files with 428 additions and 98 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class RmlworkorderUpdateStatusEnum extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == 'thetool') {
$this->execute("ALTER TABLE `RMLWorkorder` MODIFY `status` enum('new','assigned','scheduled','correction_requested','documented','completed','intervention_required') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'new'");
}
}
public function down(): void
{
if ($this->getEnvironment() == 'thetool') {
$this->execute("ALTER TABLE `RMLWorkorder` MODIFY `status` enum('new','assigned','scheduled','documented','completed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'new'");
}
}
}