mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1098 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e5d2bac6db
commit
7e93e910c7
1 changed files with 3 additions and 1 deletions
|
|
@ -285,11 +285,13 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($default && !is_int($default)) $default = "'".$default."'";
|
||||||
|
|
||||||
$column_schema[] = sprintf('"%s" %s%s %s %s',
|
$column_schema[] = sprintf('"%s" %s%s %s %s',
|
||||||
$name,
|
$name,
|
||||||
$this->column_type[$type],
|
$this->column_type[$type],
|
||||||
$size?'('.$size.')':'',
|
$size?'('.$size.')':'',
|
||||||
$default?"default '".$default."'":'',
|
$default?"default ".$default:'',
|
||||||
$notnull?'not null':''
|
$notnull?'not null':''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue