define('FRIENDICA_CODENAME', 'Asparagus');
define('FRIENDICA_VERSION', '3.6-dev');
define('DFRN_PROTOCOL_VERSION', '2.23');
-define('DB_UPDATE_VERSION', 1246);
+define('DB_UPDATE_VERSION', 1247);
define('NEW_UPDATE_ROUTINE_VERSION', 1170);
/**
use Friendica\Database\DBM;
use Friendica\Model\User;
+require_once 'include/dba.php';
+
/**
*
* update.php - automatic system update
return UPDATE_SUCCESS;
}
+
+function update_1247() {
+ // Removing hooks with the old name
+ dba::e("DELETE FROM `hook`
+WHERE `hook` LIKE 'plugin_%'");
+
+ // Make sure we install the new renamed ones
+ Addon::reload();
+}