'sitename' => 'Friendica Social Network',
'register_policy' => \Friendica\Module\Register::OPEN,
'register_text' => '',
- 'hostname' => 'friendica.local',
],
'system' => [
'default_timezone' => 'UTC',
-- ------------------------------------------
-- Friendica 2023.03-dev (Giant Rhubarb)
--- DB_UPDATE_VERSION 1514
+-- DB_UPDATE_VERSION 1515
-- ------------------------------------------
// ****************************************************************
'config' => [
- 'hostname' => 'friendica.local',
'admin_email' => 'admin@friendica.local',
'sitename' => 'Friendica Social Network',
'register_policy' => \Friendica\Module\Register::OPEN,
'system' => [
'default_timezone' => 'UTC',
'language' => 'en',
- 'ssl_policy' => \Friendica\App\BaseURL::SSL_POLICY_SELFSIGN,
'url' => 'https://friendica.local',
- 'urlpath' => '',
// don't start unexpected worker.php processes during test!
'worker_dont_fork' => true,
],
// ****************************************************************
'config' => [
- 'hostname' => '192.168.56.10',
'admin_email' => 'admin@friendica.local',
'sitename' => 'Friendica Social Network',
'register_policy' => \Friendica\Module\Register::OPEN,
'default_timezone' => 'UTC',
'language' => 'en',
'basepath' => '/vagrant',
- 'ssl_policy' => \Friendica\App\BaseURL::SSL_POLICY_SELFSIGN,
'url' => 'https://192.168.56.10',
- 'urlpath' => '',
],
];
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1514);
+ define('DB_UPDATE_VERSION', 1515);
}
return [
return Update::SUCCESS;
}
+
+function update_1515()
+{
+ DI::config()
+ ->beginTransaction()
+ ->delete('config', 'hostname')
+ ->delete('system', 'urlpath')
+ ->delete('system', 'ssl_policy')
+ ->commit();
+
+ return Update::SUCCESS;
+}