Change RimoWorkorder colume create_data to mediumtext
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
</div>
|
||||
<div class="row mt-1">
|
||||
<div class="col">
|
||||
<a href="<?=self::getUrl("Preordercampaign","updateUnitOAIDs", ["id" => $campaign->id])?>" class="btn btn-primary"><i class="far fa-r"></i> <i class="far fa-gears"></i> Wohneinheiten OAID Update</a><br />
|
||||
<a href="<?=self::getUrl("Preordercampaign","updateUnitOAIDs", ["id" => $campaign->id])?>" class="btn btn-primary"><i class="far fa-link-simple"></i> Wohneinheiten OAID Update</a><br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class AlterRimoworkorderCreatedataMediumtext extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table("RimoWorkorder");
|
||||
$table->changeColumn("create_data", "text", ['limit' => Phinx\Db\Adapter\MysqlAdapter::TEXT_MEDIUM]);
|
||||
$table->update();
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user