]> git.mxchange.org Git - friendica.git/commitdiff
Created updatescript
authorJeroen De Meerleer <me@jeroened.be>
Sun, 7 Jul 2019 21:06:37 +0000 (23:06 +0200)
committerJeroen De Meerleer <me@jeroened.be>
Sun, 7 Jul 2019 21:10:35 +0000 (23:10 +0200)
config/dbstructure.config.php
update.php

index 3c2b81352b4bb7c5f5e4a840e33a4a4f71368e28..284a6ae8a76cfbf57962274afc9c4582c5c1d0a5 100755 (executable)
@@ -34,7 +34,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1316);
+       define('DB_UPDATE_VERSION', 1317);
 }
 
 return [
index aead1b93de68455c97b93d9abbf482cb8093c2ab..0c6b4393ebfb9b2eb4344b6e954d3bed8c25f20b 100644 (file)
@@ -374,3 +374,13 @@ function update_1315()
 {
        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();
+}
\ No newline at end of file