X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbstructure.php;h=4ad54e6ba2485ba5b53afb2a77c1a2868b66f09c;hb=43ceb721963fb7c303d26ef5a999a275144dd5c6;hp=f8d084437b16ed18342855b693a3dcc15573a585;hpb=5ffef9c96d43bc0e507437bb6f08a5c76f61d42b;p=friendica.git diff --git a/include/dbstructure.php b/include/dbstructure.php index f8d084437b..4ad54e6ba2 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -242,7 +242,7 @@ function update_structure($verbose, $action, $tables=null, $definition=null) { if (!isset($database[$name]["fields"][$fieldname])) { $sql2=db_add_table_field($fieldname, $parameters); if ($sql3 == "") { - $sql3 = "ALTER TABLE `".$temp_name."` ".$sql2; + $sql3 = "ALTER" . $ignore . " TABLE `".$temp_name."` ".$sql2; } else { $sql3 .= ", ".$sql2; } @@ -253,7 +253,7 @@ function update_structure($verbose, $action, $tables=null, $definition=null) { if ($current_field_definition != $new_field_definition) { $sql2=db_modify_table_field($fieldname, $parameters); if ($sql3 == "") { - $sql3 = "ALTER TABLE `".$temp_name."` ".$sql2; + $sql3 = "ALTER" . $ignore . " TABLE `".$temp_name."` ".$sql2; } else { $sql3 .= ", ".$sql2; } @@ -1526,6 +1526,7 @@ function db_definition($charset) { "uid_contactid_created" => array("uid","contact-id","created"), "uid_created" => array("uid","created"), "uid_commented" => array("uid","commented"), + "uid_wall_created" => array("uid","wall","created"), ) ); $database["tokens"] = array(