changed shipping note
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php /** @noinspection ALL */
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class WarehouseModify2 extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseHistory = $this->table("WarehouseHistory", ["signed" => true]);
|
||||
$WarehouseHistory->changeColumn("old_value", "text", ["null" => true]);
|
||||
$WarehouseHistory->changeColumn("new_value", "text", ["null" => true]);
|
||||
$WarehouseHistory->save();
|
||||
|
||||
}
|
||||
|
||||
if ($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseHistory = $this->table("WarehouseHistory", ["signed" => true]);
|
||||
$WarehouseHistory->changeColumn("old_value", "string", ["null" => true, "limit" => 255]);
|
||||
$WarehouseHistory->changeColumn("new_value", "string", ["null" => true, "limit" => 255]);
|
||||
$WarehouseHistory->save();
|
||||
}
|
||||
|
||||
if ($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user