6 private $name, $tablename, $default, $max_length, $nullable,
7 $is_pk, $is_unique, $is_multiple, $is_key, $type, $binary,
8 $is_numeric, $is_blob, $is_unsigned, $is_zerofill;
11 $this->
name = $info->name;
12 $this->tablename = $info->table;
13 $this->
default = $info->def;
14 $this->max_length = $info->max_length;
15 $this->nullable = !$info->not_null;
16 $this->is_pk = $info->primary_key;
17 $this->is_unique = $info->unique_key;
18 $this->is_multiple = $info->multiple_key;
19 $this->is_key = ( $this->is_pk || $this->is_unique || $this->is_multiple );
20 $this->
type = $info->type;
21 $this->binary = $info->binary ??
false;
22 $this->is_numeric = $info->numeric ??
false;
23 $this->is_blob = $info->blob ??
false;
24 $this->is_unsigned = $info->unsigned ??
false;
25 $this->is_zerofill = $info->zerofill ??
false;