kopia lustrzana https://github.com/nextcloud/social
				
				
				
			Merge pull request #1330 from stefan123t/master
fix #1129 empty only existing tables in emptyAll()pull/1413/head
						commit
						293f028a19
					
				|  | @ -1164,10 +1164,11 @@ class CoreRequestBuilder { | |||
| 	 */ | ||||
| 	public function emptyAll() { | ||||
| 		foreach ($this->tables as $table) { | ||||
| 			$qb = $this->dbConnection->getQueryBuilder(); | ||||
| 			$qb->delete($table); | ||||
| 
 | ||||
| 			$qb->execute(); | ||||
| 			if ($schema->hasTable($table)) { | ||||
| 				$qb = $this->dbConnection->getQueryBuilder(); | ||||
| 				$qb->delete($table); | ||||
| 				$qb->execute(); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Carl Schwan
						Carl Schwan