Skip to content

Commit

Permalink
SQL and PHP cases
Browse files Browse the repository at this point in the history
PHP true,false,null in lowercase
SQL keywords uppercase
  • Loading branch information
Alexandra Nantel committed Aug 25, 2017
1 parent d2282f3 commit e53f379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ private function updateColumns($langs, $consolidate = 'yes')
// If column lang_code dosen't exist in the laguange add columns

if (!in_array('plh_t-'.$lc, $columns)) {
$this->query(sprintf('ALTER TABLE `%1$s` ADD COLUMN `plh_t-%2$s` varchar(255) default NULL;', self::DB_TABLE, $lc));
$this->query(sprintf('ALTER TABLE `%1$s` ADD COLUMN `plh_h-%2$s` varchar(255) default NULL;', self::DB_TABLE, $lc));
$this->query(sprintf('ALTER TABLE `%1$s` ADD COLUMN `plh_t-%2$s` VARCHAR(255) DEFAULT NULL;', self::DB_TABLE, $lc));
$this->query(sprintf('ALTER TABLE `%1$s` ADD COLUMN `plh_h-%2$s` VARCHAR(255) DEFAULT NULL;', self::DB_TABLE, $lc));
}
}
}
Expand Down

0 comments on commit e53f379

Please sign in to comment.