Files
thetool/db/migrations/20241205201225_create_rtr_100m_raster.php
Frank Schubert 33d7a4e5f1 WIP RTR Reporting
2024-12-06 13:45:20 +01:00

39 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class CreateRtr100mRaster extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Rtr100mRaster");
$table->addColumn("raster", "string", ["null" => false, "limit" => 32]);
$table->addColumn("unit_count", "integer", ["null" => false]);
$table->addColumn("create_by", "integer", ["null" => false]);
$table->addColumn("edit_by", "integer", ["null" => false]);
$table->addColumn("create", "integer", ["null" => false]);
$table->addColumn("edit", "integer", ["null" => false]);
$table->create();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("Rtr100mRaster")->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}