WIP RTR Reporting

This commit is contained in:
Frank Schubert
2024-12-06 13:45:20 +01:00
parent 3a7b356b30
commit 33d7a4e5f1
12 changed files with 604 additions and 10 deletions
@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddressAddGpsAndLaea extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Address");
$table->addColumn("gps_lat", "decimal", ["null" => true, "default" => null, "precision" => 15, "scale" => 10, "after" => "country_id"]);
$table->addColumn("gps_long", "decimal", ["null" => true, "default" => null, "precision" => 15, "scale" => 10, "after" => "gps_lat"]);
$table->addColumn("laea", "string", ["null" => true, "default" => null, "limit" => 64, "after" => "gps_long"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("Address")
->removeColumn("laea")
->removeColumn("gps_long")
->removeColumn("gps_lat")
->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}