FIX #13285 SQL error during migration with pgsql
This commit is contained in:
parent
a98b65ad99
commit
fff7ee3e96
@ -5070,15 +5070,15 @@ function migrate_members_socialnetworks()
|
||||
print '<tr><td colspan="4">';
|
||||
$sql = 'SELECT rowid, socialnetworks';
|
||||
$sql .= ', skype, twitter, facebook, linkedin, instagram, snapchat, googleplus, youtube, whatsapp FROM '.MAIN_DB_PREFIX.'adherent WHERE ';
|
||||
$sql .= ' skype IS NOT NULL OR skype!=""';
|
||||
$sql .= ' OR twitter IS NOT NULL OR twitter!=""';
|
||||
$sql .= ' OR facebook IS NOT NULL OR facebook!=""';
|
||||
$sql .= ' OR linkedin IS NOT NULL OR linkedin!=""';
|
||||
$sql .= ' OR instagram IS NOT NULL OR instagram!=""';
|
||||
$sql .= ' OR snapchat IS NOT NULL OR snapchat!=""';
|
||||
$sql .= ' OR googleplus IS NOT NULL OR googleplus!=""';
|
||||
$sql .= ' OR youtube IS NOT NULL OR youtube!=""';
|
||||
$sql .= ' OR whatsapp IS NOT NULL OR whatsapp!=""';
|
||||
$sql .= " skype IS NOT NULL OR skype <> ''";
|
||||
$sql .= " OR twitter IS NOT NULL OR twitter <> ''";
|
||||
$sql .= " OR facebook IS NOT NULL OR facebook <> ''";
|
||||
$sql .= " OR linkedin IS NOT NULL OR linkedin <> ''";
|
||||
$sql .= " OR instagram IS NOT NULL OR instagram <> ''";
|
||||
$sql .= " OR snapchat IS NOT NULL OR snapchat <> ''";
|
||||
$sql .= " OR googleplus IS NOT NULL OR googleplus <> ''";
|
||||
$sql .= " OR youtube IS NOT NULL OR youtube <> ''";
|
||||
$sql .= " OR whatsapp IS NOT NULL OR whatsapp <> ''";
|
||||
//print $sql;
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
@ -5160,16 +5160,16 @@ function migrate_contacts_socialnetworks()
|
||||
print '<tr><td colspan="4">';
|
||||
$sql = 'SELECT rowid, socialnetworks';
|
||||
$sql .= ', jabberid, skype, twitter, facebook, linkedin, instagram, snapchat, googleplus, youtube, whatsapp FROM '.MAIN_DB_PREFIX.'socpeople WHERE ';
|
||||
$sql .= ' jabberid IS NOT NULL OR jabberid!=""';
|
||||
$sql .= ' OR skype IS NOT NULL OR skype!=""';
|
||||
$sql .= ' OR twitter IS NOT NULL OR twitter!=""';
|
||||
$sql .= ' OR facebook IS NOT NULL OR facebook!=""';
|
||||
$sql .= ' OR linkedin IS NOT NULL OR linkedin!=""';
|
||||
$sql .= ' OR instagram IS NOT NULL OR instagram!=""';
|
||||
$sql .= ' OR snapchat IS NOT NULL OR snapchat!=""';
|
||||
$sql .= ' OR googleplus IS NOT NULL OR googleplus!=""';
|
||||
$sql .= ' OR youtube IS NOT NULL OR youtube!=""';
|
||||
$sql .= ' OR whatsapp IS NOT NULL OR whatsapp!=""';
|
||||
$sql .= " jabberid IS NOT NULL OR jabberid <> ''";
|
||||
$sql .= " OR skype IS NOT NULL OR skype <> ''";
|
||||
$sql .= " OR twitter IS NOT NULL OR twitter <> ''";
|
||||
$sql .= " OR facebook IS NOT NULL OR facebook <> ''";
|
||||
$sql .= " OR linkedin IS NOT NULL OR linkedin <> ''";
|
||||
$sql .= " OR instagram IS NOT NULL OR instagram <> ''";
|
||||
$sql .= " OR snapchat IS NOT NULL OR snapchat <> ''";
|
||||
$sql .= " OR googleplus IS NOT NULL OR googleplus <> ''";
|
||||
$sql .= " OR youtube IS NOT NULL OR youtube <> ''";
|
||||
$sql .= " OR whatsapp IS NOT NULL OR whatsapp <> ''";
|
||||
//print $sql;
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
@ -5255,15 +5255,15 @@ function migrate_thirdparties_socialnetworks()
|
||||
print '<tr><td colspan="4">';
|
||||
$sql = 'SELECT rowid, socialnetworks';
|
||||
$sql .= ', skype, twitter, facebook, linkedin, instagram, snapchat, googleplus, youtube, whatsapp FROM '.MAIN_DB_PREFIX.'societe WHERE ';
|
||||
$sql .= ' skype IS NOT NULL OR skype!=""';
|
||||
$sql .= ' OR twitter IS NOT NULL OR twitter!=""';
|
||||
$sql .= ' OR facebook IS NOT NULL OR facebook!=""';
|
||||
$sql .= ' OR linkedin IS NOT NULL OR linkedin!=""';
|
||||
$sql .= ' OR instagram IS NOT NULL OR instagram!=""';
|
||||
$sql .= ' OR snapchat IS NOT NULL OR snapchat!=""';
|
||||
$sql .= ' OR googleplus IS NOT NULL OR googleplus!=""';
|
||||
$sql .= ' OR youtube IS NOT NULL OR youtube!=""';
|
||||
$sql .= ' OR whatsapp IS NOT NULL OR whatsapp!=""';
|
||||
$sql .= " skype IS NOT NULL OR skype <> ''";
|
||||
$sql .= " OR twitter IS NOT NULL OR twitter <> ''";
|
||||
$sql .= " OR facebook IS NOT NULL OR facebook <> ''";
|
||||
$sql .= " OR linkedin IS NOT NULL OR linkedin <> ''";
|
||||
$sql .= " OR instagram IS NOT NULL OR instagram <> ''";
|
||||
$sql .= " OR snapchat IS NOT NULL OR snapchat <> ''";
|
||||
$sql .= " OR googleplus IS NOT NULL OR googleplus <> ''";
|
||||
$sql .= " OR youtube IS NOT NULL OR youtube <> ''";
|
||||
$sql .= " OR whatsapp IS NOT NULL OR whatsapp <> ''";
|
||||
//print $sql;
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user