// assume we need to create database..
return null;
}
+
+
+ function computeFieldCreate($f)
+ {
+ $str = "\t$f->name ";
+ $str .= isset($this->typemap[$f->type]) ? $this->typemap[$f->type] : $f->type;
+ if (isset($f->nullable) && $f->nullable == '0') {
+ $str .= ' NOT NULL ';
+ }
+ if (!isset($f->default)) {
+ return $str;
+ }
+ if (!strlen($f->default)) {
+ return $str . " DEFAULT ''";
+ }
+
+ return $str . ($f->default == 'CURRENT_TIMESTAMP' ? '' : $f->default);
+ }
+
// may as well rewrite this.. as we have too loop throug hit anyway..
function createTable(MTrackDBSchema_Table $table)
{