mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Merge remote-tracking branch 'upstream/develop' into no-item
This commit is contained in:
commit
abcbbd2ec1
19 changed files with 301 additions and 256 deletions
13
update.php
13
update.php
|
@ -818,7 +818,17 @@ function update_1400()
|
|||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1403()
|
||||
function pre_update_1403()
|
||||
{
|
||||
// Necessary before a primary key change
|
||||
if (!DBA::e("DROP TABLE `parsed_url`")) {
|
||||
return Update::FAILED;
|
||||
}
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1404()
|
||||
{
|
||||
$tasks = DBA::select('workerqueue', ['id', 'command', 'parameter'], ['command' => ['notifier', 'delivery', 'apdelivery', 'done' => false]]);
|
||||
while ($task = DBA::fetch($tasks)) {
|
||||
|
@ -874,5 +884,4 @@ function update_1403()
|
|||
}
|
||||
DBA::update('workerqueue', ['parameter' => json_encode($parameters)], ['id' => $task['id']]);
|
||||
}
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue