Adding migration for payroll group 💶

This commit is contained in:
gamonoid
2017-09-09 15:23:38 +02:00
parent 91c8b938c5
commit 382eef1ac0
2 changed files with 26 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
<?php
$migrationList = [];
$migrationList[] = 'v20170908_200000_payroll_group';
$migrationList[] = 'v20170702_190500_add_attendance_image';
$migrationList[] = 'v20170310_190401_add_timesheet_changes';
$migrationList[] = 'v20161116_190001_unique_index_cron_name';

View 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);
}
}