Preorder: Status can now be changed manually
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user