return DBA::toArray($stmtColumns);
}
- private static function checkInitialValues()
+ /**
+ * Check if initial database values do exist - or create them
+ */
+ public static function checkInitialValues()
{
if (DBA::tableExists('contact') && !DBA::exists('contact', ['id' => 0])) {
DBA::insert('contact', ['nurl' => '']);
use Friendica\Core\Protocol;
use Friendica\Core\Session;
use Friendica\Core\Session\ISession;
-use Friendica\Core\System;
use Friendica\Database\Database;
-use Friendica\Database\DBA;
+use Friendica\Database\DBStructure;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Network\HTTPException;
$dba->setTestmode(true);
+ DBStructure::checkInitialValues();
+
/** @var IConfig $config */
$this->config = $this->dice->create(IConfig::class);