Preorder/add new filter

This commit is contained in:
Luca Haid
2025-12-02 14:46:22 +00:00
parent 1985865d1f
commit 09ffd911fc
20 changed files with 1486 additions and 66 deletions
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class CreateWarehouseProjectJournal extends AbstractMigration
{
public function change(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table('WarehouseProjectJournal');
$table->addColumn('projectId', 'integer')
->addColumn('text', 'text', ['null' => true])
->addColumn('data', 'json', ['null' => true, 'comment' => 'Stores changes/diffs'])
->addColumn('createBy', 'integer')
->addColumn('create', 'integer')
->addForeignKey('projectId', 'WarehouseProject', 'id', ['delete' => 'CASCADE', 'update' => 'CASCADE'])
->create();
}
}
}