From 06760e40f6362a9abf6308fe578f3a113863b729 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 2 Sep 2025 08:39:24 +0000 Subject: [PATCH] Update 20250901410000_workorder_rename.php --- .../20250901410000_workorder_rename.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/db/migrations/20250901410000_workorder_rename.php b/db/migrations/20250901410000_workorder_rename.php index 339448e8e..0f10df417 100644 --- a/db/migrations/20250901410000_workorder_rename.php +++ b/db/migrations/20250901410000_workorder_rename.php @@ -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(); } }