Merge branch 'fronkdev' into 'master'

Added Document upload to ConstructionConsent Owners

See merge request fronk/thetool!911
This commit is contained in:
Frank Schubert
2025-01-15 16:15:27 +00:00
8 changed files with 557 additions and 44 deletions
@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class CreateContructionConsentOwnerFile extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ConstructionConsentOwnerFile");
$table->addColumn("constructionconsentowner_id", "integer", ["null" => false]);
$table->addColumn("file_id", "integer", ["null" => false]);
$table->addColumn("filename", "string", ["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("ConstructionConsentOwnerFile")->drop()->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}