increasing varchar sizes for ConstructionConsent tables
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use Phinx\Migration\AbstractMigration;
|
||||||
|
|
||||||
|
final class ConstructionConsentProjectChangeVarcharLength extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
if($this->getEnvironment() == "thetool") {
|
||||||
|
$ccp = $this->table("ConstructionConsentProject");
|
||||||
|
$ccp->changeColumn("sender_name", "string", ["null" => false, "limit" => 255]);
|
||||||
|
$ccp->changeColumn("sender_email", "string", ["null" => false, "limit" => 255]);
|
||||||
|
$ccp->changeColumn("sender_reply_to", "string", ["null" => false, "limit" => 255]);
|
||||||
|
$ccp->changeColumn("email", "string", ["null" => false, "limit" => 255]);
|
||||||
|
$ccp->changeColumn("phone", "string", ["null" => false, "limit" => 255]);
|
||||||
|
$ccp->update();
|
||||||
|
|
||||||
|
$ccj = $this->table("ConstructionConsentJournal");
|
||||||
|
$ccj->changeColumn("text", "text", ["null" => false]);
|
||||||
|
$ccj->update();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($this->getEnvironment() == "addressdb") {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
if($this->getEnvironment() == "thetool") {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if($this->getEnvironment() == "addressdb") {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user