Files
icehrm/core/migrations/v20180808_250004_add_languages.php
Thilina Hasantha 16014bb38e Upgrade to v26 (#172)
* A bunch of new updates from icehrm pro

* Push changes to frontend
2019-02-03 14:00:34 +01:00

40 lines
983 B
PHP

<?php
namespace Classes\Migration;
class v20180808_250004_add_languages extends AbstractMigration{
public function up(){
$sql = <<<'SQL'
INSERT INTO `SupportedLanguages` (`name`, `description`) VALUES ('sr', 'Serbian');
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
INSERT INTO `SupportedLanguages` (`name`, `description`) VALUES ('sv', 'Swedish');
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
INSERT INTO `SupportedLanguages` (`name`, `description`) VALUES ('no', 'Norwegian');
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
INSERT INTO `SupportedLanguages` (`name`, `description`) VALUES ('pt', 'Portuguese');
SQL;
$this->executeQuery($sql);
$sql = <<<'SQL'
INSERT INTO `SupportedLanguages` (`name`, `description`) VALUES ('nl', 'Dutch');
SQL;
return $this->executeQuery($sql);
}
public function down(){
return true;
}
}