Update 20250901410000_workorder_rename.php
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user