Adding migration for payroll group 💶
This commit is contained in:
25
migrations/v20170908_200000_payroll_group.php
Normal file
25
migrations/v20170908_200000_payroll_group.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace Classes\Migration;
|
||||
|
||||
class v20170908_200000_payroll_group extends AbstractMigration{
|
||||
|
||||
public function up(){
|
||||
|
||||
$sql = <<<'SQL'
|
||||
Alter table Payroll add COLUMN `deduction_group` bigint(20) DEFAULT NULL;
|
||||
SQL;
|
||||
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
}
|
||||
|
||||
public function down(){
|
||||
|
||||
$sql = <<<'SQL'
|
||||
Alter table Payroll drop COLUMN `deduction_group`;
|
||||
SQL;
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user