fixed hoursEntries to be text
This commit is contained in:
27
db/migrations/20241127100000_warehouse_modify_4.php
Normal file
27
db/migrations/20241127100000_warehouse_modify_4.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php /** @noinspection ALL */
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class WarehouseModify4 extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseShippingNote = $this->table("WarehouseShippingNote", ["signed" => true]);
|
||||
// change column hoursEntries to text without limit
|
||||
$WarehouseShippingNote->changeColumn("hoursEntries", "text", ["null" => true]);
|
||||
$WarehouseShippingNote->save();
|
||||
}
|
||||
|
||||
if ($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$WarehouseShippingNote = $this->table("WarehouseShippingNote");
|
||||
$WarehouseShippingNote->changeColumn("hoursEntries", "text", ["limit" => 255, "null" => true]);
|
||||
$WarehouseShippingNote->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user