mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7264 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3b56ef59d0
commit
81f7bf8f30
1 changed files with 2 additions and 2 deletions
|
|
@ -387,7 +387,7 @@
|
|||
$query = sprintf("ALTER TABLE \"%s%s\" ADD \"%s\" ", $this->prefix, $table_name, $column_name);
|
||||
if($size) $query .= sprintf(" %s(%s) ", $type, $size);
|
||||
else $query .= sprintf(" %s ", $type);
|
||||
if($default) $query .= sprintf(" DEFAULT '%s' ", $default);
|
||||
if(!is_null($default)) $query .= sprintf(" DEFAULT '%s' ", $default);
|
||||
if($notnull) $query .= " NOT NULL ";
|
||||
|
||||
$this->_query($query);
|
||||
|
|
@ -551,7 +551,7 @@
|
|||
$name,
|
||||
$this->column_type[$type],
|
||||
$size?'('.$size.')':'',
|
||||
$default?"DEFAULT '".$default."'":"",
|
||||
is_null($default)?"":"DEFAULT '".$default."'",
|
||||
$notnull?'NOT NULL':'');
|
||||
|
||||
if($auto_increment) $auto_increment_list[] = $name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue