method deleteIndex documentation in bbn\Db\Languages\Sqlite

Deletes an index

function(string $table, string $key) { if (($this->tableFullName($table, 1)) && bbn\Str::checkName($key)) { //changed the row above because if the table has no rows query() returns 0 //return (bool)$this->db->query("ALTER TABLE $table DROP INDEX `$key`"); return $this->query('DROP INDEX IF EXISTS '.$key) !== false; } return false; }

Deletes an index BBN is a suite of PHP and JS libraries and VueJS components - all open-source!, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.