Kaynağa Gözat

Forgotten method name update for SQLite

https://github.com/FreshRSS/FreshRSS/pull/1183
https://github.com/FreshRSS/FreshRSS/issues/1153
Alexandre Alapetite 9 yıl önce
ebeveyn
işleme
3e1b2e75e0
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      app/Models/EntryDAOSQLite.php

+ 3 - 2
app/Models/EntryDAOSQLite.php

@@ -2,11 +2,12 @@
 
 
 class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO {
 class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO {
 
 
-	protected function autoAddColumn($errorInfo) {
+	protected function autoUpdateDb($errorInfo) {
 		if (empty($errorInfo[0]) || $errorInfo[0] == '42S22') {	//ER_BAD_FIELD_ERROR
 		if (empty($errorInfo[0]) || $errorInfo[0] == '42S22') {	//ER_BAD_FIELD_ERROR
+			//autoAddColumn
 			if ($tableInfo = $this->bd->query("SELECT sql FROM sqlite_master where name='entry'")) {
 			if ($tableInfo = $this->bd->query("SELECT sql FROM sqlite_master where name='entry'")) {
 				$showCreate = $tableInfo->fetchColumn();
 				$showCreate = $tableInfo->fetchColumn();
-				Minz_Log::debug('FreshRSS_EntryDAOSQLite::autoAddColumn: ' . $showCreate);
+				Minz_Log::debug('FreshRSS_EntryDAOSQLite::autoUpdateDb: ' . $showCreate);
 				foreach (array('lastSeen', 'hash') as $column) {
 				foreach (array('lastSeen', 'hash') as $column) {
 					if (stripos($showCreate, $column) === false) {
 					if (stripos($showCreate, $column) === false) {
 						return $this->addColumn($column);
 						return $this->addColumn($column);