Merge branch 'develop' into pr/member-phone-number

This commit is contained in:
Kijin Sung 2019-07-28 00:01:20 +09:00
commit 11ffc78dda
3 changed files with 3 additions and 24 deletions

View file

@ -467,7 +467,7 @@ class DBMySQL extends DB
* @param boolean $notnull not null status, default value is false
* @return void
*/
function addColumn($table_name, $column_name, $type = 'number', $size = '', $default = null, $notnull = false, $after = null)
function addColumn($table_name, $column_name, $type = 'number', $size = '', $default = null, $notnull = false, $after_column = null)
{
$type = strtolower($type);
$type = isset($this->column_type[$type]) ? $this->column_type[$type] : $type;

View file

@ -289,18 +289,8 @@ class memberModel extends member
if(!$email_address) return;
$args = new stdClass();
if(config('db.master.type') == 'cubrid')
{
$args->email_address = strtolower($email_address);
$output = executeQuery('member.getMemberInfoByEmailAddressForCubrid', $args);
}
else
{
$args->email_address = $email_address;
$output = executeQuery('member.getMemberInfoByEmailAddress', $args);
}
$args->email_address = $email_address;
$output = executeQuery('member.getMemberInfoByEmailAddress', $args);
if(!$output->toBool()) return $output;
if(!$output->data) return;

View file

@ -1,11 +0,0 @@
<query id="getMemberInfoByEmailAddress" action="select">
<tables>
<table name="member" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="lcase(email_address)" var="email_address" notnull="notnull" />
</conditions>
</query>