Update 20250901410000_workorder_rename.php

This commit is contained in:
Luca Haid
2025-09-02 08:39:24 +00:00
parent 3dd75d3c7f
commit 06760e40f6
@@ -8,11 +8,11 @@ final class WorkorderRename extends AbstractMigration
{ {
public function up(): void public function up(): void
{ {
$this->table('RMLWorkorder')->rename('Workorder'); $this->table('RMLWorkorder')->rename('Workorder')->save();
$this->table('RMLWorkorderCompany')->rename('WorkorderCompany'); $this->table('RMLWorkorderCompany')->rename('WorkorderCompany')->save();
$this->table('RMLWorkorderDocumentation')->rename('WorkorderDocumentation'); $this->table('RMLWorkorderDocumentation')->rename('WorkorderDocumentation')->save();
$this->table('RMLWorkorderJournal')->rename('WorkorderJournal'); $this->table('RMLWorkorderJournal')->rename('WorkorderJournal')->save();
$this->table('RMLWorkorderTenantConfig')->rename('WorkorderTenantConfig'); $this->table('RMLWorkorderTenantConfig')->rename('WorkorderTenantConfig')->save();
$workorderTable = $this->table('Workorder'); $workorderTable = $this->table('Workorder');
$workorderTable->addColumn('civilEngineeringCompanyId', 'integer', ['null' => true, 'default' => null, 'after' => 'companyId', 'comment' => 'Company assigned for civil engineering task']) $workorderTable->addColumn('civilEngineeringCompanyId', 'integer', ['null' => true, 'default' => null, 'after' => 'companyId', 'comment' => 'Company assigned for civil engineering task'])
@@ -72,10 +72,10 @@ final class WorkorderRename extends AbstractMigration
->removeIndexByName('originalCompanyId_idx') ->removeIndexByName('originalCompanyId_idx')
->save(); ->save();
$this->table('Workorder')->rename('RMLWorkorder'); $this->table('Workorder')->rename('RMLWorkorder')->save();
$this->table('WorkorderCompany')->rename('RMLWorkorderCompany'); $this->table('WorkorderCompany')->rename('RMLWorkorderCompany')->save();
$this->table('WorkorderDocumentation')->rename('RMLWorkorderDocumentation'); $this->table('WorkorderDocumentation')->rename('RMLWorkorderDocumentation')->save();
$this->table('WorkorderJournal')->rename('RMLWorkorderJournal'); $this->table('WorkorderJournal')->rename('RMLWorkorderJournal')->save();
$this->table('WorkorderTenantConfig')->rename('RMLWorkorderTenantConfig'); $this->table('WorkorderTenantConfig')->rename('RMLWorkorderTenantConfig')->save();
} }
} }