Merge branch 'fronkdev' into 'master'

importing and displaying Rimo Building userLabel

See merge request fronk/thetool!2075
This commit is contained in:
Frank Schubert
2026-02-02 11:32:18 +00:00
5 changed files with 52 additions and 6 deletions

View File

@@ -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

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AdbHausnummerAddRimoUserLabel extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$table = $this->table("Hausnummer");
$table->addColumn("rimo_user_label", "string", ["null" => true, "default" => null, "after" => "rimo_op_state", "limit" => 255]);
$table->update();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}