🧲 New features Custom user role permissions Employee edit form updated Employee daily task list Attendance and employee distribution charts on dashboard Improvements to company structure and company assets module Improved tables for displaying data in several modules Faster data loading (specially for employee module) Initials based profile pictures Re-designed login page Re-designed user profile page Improvements to filtering New REST endpoints for employee qualifications 🐛 Bug fixes Fixed, issue with managers being able to create performance reviews for employees who are not their direct reports Fixed, issues related to using full profile image instead of using smaller version of profile image Changing third gender to other Improvements and fixes for internal frontend data caching
44 lines
986 B
PHP
44 lines
986 B
PHP
<?php
|
|
namespace Classes\Migration;
|
|
|
|
class v20201028_280002_update_gender extends AbstractMigration {
|
|
|
|
public function up(){
|
|
|
|
$sql = <<<'SQL'
|
|
ALTER TABLE Candidates modify column `gender` varchar(15) NULL;
|
|
SQL;
|
|
$this->executeQuery($sql);
|
|
|
|
$sql = <<<'SQL'
|
|
Update Candidates set gender = 'Other' WHERE gender = 'Divers';
|
|
SQL;
|
|
$this->executeQuery($sql);
|
|
|
|
$sql = <<<'SQL'
|
|
ALTER TABLE Employees modify column `gender` varchar(15) NULL;
|
|
SQL;
|
|
$this->executeQuery($sql);
|
|
|
|
$sql = <<<'SQL'
|
|
Update Employees set gender = 'Other' WHERE gender = 'Divers';
|
|
SQL;
|
|
$this->executeQuery($sql);
|
|
|
|
$sql = <<<'SQL'
|
|
ALTER TABLE ArchivedEmployees modify column `gender` varchar(15) NULL;
|
|
SQL;
|
|
$this->executeQuery($sql);
|
|
|
|
$sql = <<<'SQL'
|
|
Update ArchivedEmployees set gender = 'Other' WHERE gender = 'Divers';
|
|
SQL;
|
|
|
|
return $this->executeQuery($sql);
|
|
}
|
|
|
|
public function down(){
|
|
return true;
|
|
}
|
|
}
|