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
{
$this->table('RMLWorkorder')->rename('Workorder');
$this->table('RMLWorkorderCompany')->rename('WorkorderCompany');
$this->table('RMLWorkorderDocumentation')->rename('WorkorderDocumentation');
$this->table('RMLWorkorderJournal')->rename('WorkorderJournal');
$this->table('RMLWorkorderTenantConfig')->rename('WorkorderTenantConfig');
$this->table('RMLWorkorder')->rename('Workorder')->save();
$this->table('RMLWorkorderCompany')->rename('WorkorderCompany')->save();
$this->table('RMLWorkorderDocumentation')->rename('WorkorderDocumentation')->save();
$this->table('RMLWorkorderJournal')->rename('WorkorderJournal')->save();
$this->table('RMLWorkorderTenantConfig')->rename('WorkorderTenantConfig')->save();
$workorderTable = $this->table('Workorder');
$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')
->save();
$this->table('Workorder')->rename('RMLWorkorder');
$this->table('WorkorderCompany')->rename('RMLWorkorderCompany');
$this->table('WorkorderDocumentation')->rename('RMLWorkorderDocumentation');
$this->table('WorkorderJournal')->rename('RMLWorkorderJournal');
$this->table('WorkorderTenantConfig')->rename('RMLWorkorderTenantConfig');
$this->table('Workorder')->rename('RMLWorkorder')->save();
$this->table('WorkorderCompany')->rename('RMLWorkorderCompany')->save();
$this->table('WorkorderDocumentation')->rename('RMLWorkorderDocumentation')->save();
$this->table('WorkorderJournal')->rename('RMLWorkorderJournal')->save();
$this->table('WorkorderTenantConfig')->rename('RMLWorkorderTenantConfig')->save();
}
}