mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
DB Column 생성 시 기본값으로 0을 지정할 수 없는 문제 해결
This commit is contained in:
parent
9f618fc331
commit
b21d6534f1
3 changed files with 6 additions and 6 deletions
|
|
@ -377,7 +377,7 @@ class DBMssql extends DB
|
|||
* @param boolean $notnull not null status, default value is false
|
||||
* @return void
|
||||
*/
|
||||
function addColumn($table_name, $column_name, $type = 'number', $size = '', $default = '', $notnull = false)
|
||||
function addColumn($table_name, $column_name, $type = 'number', $size = '', $default = null, $notnull = false)
|
||||
{
|
||||
if($this->isColumnExists($table_name, $column_name))
|
||||
{
|
||||
|
|
@ -399,7 +399,7 @@ class DBMssql extends DB
|
|||
$query .= sprintf(" %s ", $type);
|
||||
}
|
||||
|
||||
if($default)
|
||||
if(isset($default))
|
||||
{
|
||||
$query .= sprintf(" default '%s' ", $default);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue