Created updatescript
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
if (!defined('DB_UPDATE_VERSION')) {
|
if (!defined('DB_UPDATE_VERSION')) {
|
||||||
define('DB_UPDATE_VERSION', 1316);
|
define('DB_UPDATE_VERSION', 1317);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|||||||
10
update.php
10
update.php
@@ -374,3 +374,13 @@ function update_1315()
|
|||||||
{
|
{
|
||||||
DBA::delete('item-delivery-data', ['postopts' => '', 'inform' => '', 'queue_count' => 0, 'queue_done' => 0]);
|
DBA::delete('item-delivery-data', ['postopts' => '', 'inform' => '', 'queue_count' => 0, 'queue_done' => 0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1316()
|
||||||
|
{
|
||||||
|
DBA::update('profile', ['marital' => "In a relation"], ['marital' => "Unavailable"]);
|
||||||
|
DBA::update('profile', ['marital' => "Single"], ['marital' => "Available"]);
|
||||||
|
|
||||||
|
Worker::add(PRIORITY_LOW, 'ProfileUpdate');
|
||||||
|
Contact::updateSelfFromUserID();
|
||||||
|
GContact::updateForUser();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user