From 2179a7faa8465562964d99911c70955af5a0a2a7 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 14 Dec 2017 21:32:53 +0000 Subject: [PATCH] Now it works --- scripts/dbstructure.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/dbstructure.php b/scripts/dbstructure.php index 19e2830b09..58c1011fb9 100755 --- a/scripts/dbstructure.php +++ b/scripts/dbstructure.php @@ -9,10 +9,12 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Database\DBStructure; +require_once "boot.php"; +require_once "include/dba.php"; + $a = new App(dirname(__DIR__)); @include ".htconfig.php"; -require_once "include/dba.php"; dba::connect($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data); @@ -44,7 +46,7 @@ if ($_SERVER["argc"] == 2) { Config::set('system','build',DB_UPDATE_VERSION); return; case "dumpsql": - DBStructure::printStructure(db_definition()); + DBStructure::printStructure(DBStructure::definition()); return; case "toinnodb": DBStructure::convertToInnoDB(); -- 2.39.5