Merge branch 'fronkdev' into 'master'

Added Preding to rimo import; added workorder team

See merge request fronk/thetool!298
This commit is contained in:
Frank Schubert
2024-03-21 12:38:18 +00:00
10 changed files with 248 additions and 12 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class RimoWorkorderAddTeam extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("RimoWorkorder");
$table->addColumn("rimo_team_id", "string", ["null" => true, "default" => null, "limit" => 64, "after" => "rimo_status"]);
$table->addColumn("rimo_team_name", "string", ["null" => true, "default" => null, "limit" => 64, "after" => "rimo_team_id"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("RimoWorkorder");
$table->removeColumn("rimo_team_name");
$table->removeColumn("rimo_team_id");
$table->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}