From d79b7bdb1dc8a55573cba0ea48ae8417095e5966 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 2 Feb 2026 11:27:40 +0100 Subject: [PATCH] Fixed migration --- ...251215150000_warehouse_category_set_prefixes.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/db/migrations/20251215150000_warehouse_category_set_prefixes.php b/db/migrations/20251215150000_warehouse_category_set_prefixes.php index bbba8f3c4..320d86db0 100644 --- a/db/migrations/20251215150000_warehouse_category_set_prefixes.php +++ b/db/migrations/20251215150000_warehouse_category_set_prefixes.php @@ -7,13 +7,14 @@ final class WarehouseCategorySetPrefixes extends AbstractMigration { public function up(): void { - $table = $this->table('WarehouseCategory'); - if (!$table->hasColumn('articleNumberPrefix')) { - $table->addColumn('articleNumberPrefix', 'string', ['limit' => 4, 'null' => true, 'after' => 'description']) - ->update(); - } - if ($this->getEnvironment() == "thetool") { + $table = $this->table('WarehouseCategory'); + if (!$table->hasColumn('articleNumberPrefix')) { + $table->addColumn('articleNumberPrefix', 'string', ['limit' => 4, 'null' => true, 'after' => 'description']) + ->update(); + } + + $prefixes = [ 1 => '1901', // Dienstleistungen 3 => '9980', // EStmk Shop