21 lines
565 B
PHP
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();
|
|
}
|
|
}
|
|
}
|