mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Merge branch 'develop' into pr/member-phone-number
This commit is contained in:
commit
11ffc78dda
3 changed files with 3 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue