mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Check if table exists
This commit is contained in:
parent
88b3effc18
commit
4585335db9
1 changed files with 4 additions and 0 deletions
|
@ -1148,6 +1148,10 @@ function update_1502()
|
||||||
|
|
||||||
function update_1505()
|
function update_1505()
|
||||||
{
|
{
|
||||||
|
if (!DBStructure::existsTable('config')) {
|
||||||
|
return Update::SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
$conditions = [
|
$conditions = [
|
||||||
"((`cat` = ?) AND ((`k` LIKE ?) OR (`k` = ?) OR (`k` LIKE ?) OR (`k` = ?))) OR " .
|
"((`cat` = ?) AND ((`k` LIKE ?) OR (`k` = ?) OR (`k` LIKE ?) OR (`k` = ?))) OR " .
|
||||||
"((`cat` != ?) AND (`k` LIKE ?)) OR " .
|
"((`cat` != ?) AND (`k` LIKE ?)) OR " .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue