浏览代码

Fix DB\Sqlite

Visman 3 年之前
父节点
当前提交
91f192e52d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Core/DB/Sqlite.php

+ 2 - 2
app/Core/DB/Sqlite.php

@@ -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
     {