;
}
- $indexes = [];#$this->db()->conf_type('table.sql.index',false);
+ $indexes = [];
foreach ($this->indexes() as $i) {
if (!empty($i['unique']) or !empty($i['key'])) continue;
$indexes[] = 'CREATE INDEX '.$i['name'].' ON '.$this->sql_name().' ('.$i['field'].')';
public function buttons() {
if (!$this->show_buttons or empty(self::$params)) return false;
- if ($this->type() != 'table') return false;
+ if (!preg_match('/(table|view)/',$this->type())) return false;
return true;
}