Fix DB\Sqlite

This commit is contained in:
Visman 2021-12-28 21:25:16 +07:00
parent 7e04d6acc2
commit 91f192e52d

View file

@ -201,7 +201,7 @@ class Sqlite
*/
public function fieldExists(string $table, string $field): bool
{
$table = $this->tName($table),
$table = $this->tName($table);
$stmt = $this->db->query("PRAGMA table_info({$table})");
while ($row = $stmt->fetch()) {
@ -303,7 +303,7 @@ class Sqlite
}
/**
* Добавляет поле в таблицу // ???? нет COLLATE
* Добавляет поле в таблицу
*/
public function addField(string $table, string $field, string $type, bool $allowNull, /* mixed */ $default = null, string $collate = null, string $after = null): bool
{