Files
thetool/db/migrations/20251024091253_preorder_add_files.php
2025-10-24 07:33:21 +00:00

21 lines
565 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderAddFiles extends AbstractMigration {
public function up(): void {
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preorder");
$table->addColumn("files", "text", ['null' => true, 'after' => 'note']);
$table->update();
}
}
public function down(): void {
if($this->getEnvironment() == "thetool") {
$this->table("Preorder")->removeColumn("files")->save();
}
}
}