Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Classes\Migration;
class v20200429_270010_setting_groups extends AbstractMigration {
public function up(){
$sql = <<<'SQL'
Alter table Settings add column category varchar(15) NOT NULL;
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
Update Settings set category = TRIM(SUBSTR(name, 1, LOCATE(':', name) - 1));
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}