Preorder: Status can now be changed manually

This commit is contained in:
Frank Schubert
2023-11-07 13:00:29 +01:00
parent bd3489f6e4
commit 79fe0aa00e
18 changed files with 367 additions and 69 deletions
@@ -28,6 +28,17 @@ final class AddVoiceplanZone extends AbstractMigration
$table->removeColumn("increment");
$table->renameColumn("voiceplan_id", "voiceplanzone_id");
$table->update();
$table = $this->table("VoiceplanFile");
$table->addColumn("voiceplan_id", "integer", ["null" => false]);
$table->addColumn("file_id", "integer", ["null" => false]);
$table->addColumn("name", "string", ["null" => false, "limit" => 255]);
$table->addColumn("description", "text", ["null" => true, "default" => null]);
$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") {
@@ -38,6 +49,8 @@ final class AddVoiceplanZone extends AbstractMigration
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("VoiceplanFile")->drop()->save();
$table = $this->table("Voiceplandestination");
$table->renameColumn("voiceplanzone_id", "voiceplan_id");
$table->addColumn("purchase_price", "decimal", ["null" => false, "precision" => 14, "scale" => 4]);