Adding migration for payroll group 💶

This commit is contained in:
gamonoid committed 2017-09-09 15:23:38 +02:00
1 parent 91c8b938c5
commit 382eef1ac0
2 files changed
+26

No files matched your search

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