Fixed migration
This commit is contained in:
@@ -7,13 +7,14 @@ final class WarehouseCategorySetPrefixes extends AbstractMigration
|
|||||||
{
|
{
|
||||||
public function up(): void
|
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") {
|
if ($this->getEnvironment() == "thetool") {
|
||||||
|
$table = $this->table('WarehouseCategory');
|
||||||
|
if (!$table->hasColumn('articleNumberPrefix')) {
|
||||||
|
$table->addColumn('articleNumberPrefix', 'string', ['limit' => 4, 'null' => true, 'after' => 'description'])
|
||||||
|
->update();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$prefixes = [
|
$prefixes = [
|
||||||
1 => '1901', // Dienstleistungen
|
1 => '1901', // Dienstleistungen
|
||||||
3 => '9980', // EStmk Shop
|
3 => '9980', // EStmk Shop
|
||||||
|
|||||||
Reference in New Issue
Block a user