]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBStructure.php
BBCode - fixed syntax error
[friendica.git] / src / Database / DBStructure.php
index 3043ae132235b76de62239ffbc9a1fdb442fe959..7d52e60caec13d53a0b0b811754932c76ca121ed 100644 (file)
@@ -12,6 +12,8 @@ use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Util\DateTimeFormat;
 
+require_once 'include/dba.php';
+
 /**
  * @brief This class contain functions for the database management
  *
@@ -251,6 +253,7 @@ class DBStructure
         * @param array $tables     An array of the database tables
         * @param array $definition An array of the definition tables
         * @return string Empty string if the update is successful, error messages otherwise
+        * @throws Exception
         */
        public static function update($verbose, $action, $install = false, array $tables = null, array $definition = null)
        {
@@ -715,7 +718,7 @@ class DBStructure
         * @param int    $type             The type of renaming (Default is Column)
         *
         * @return boolean Was the renaming successful?
-        *
+        * @throws Exception
         */
        public static function rename($table, $columns, $type = self::RENAME_COLUMN)
        {
@@ -775,6 +778,7 @@ class DBStructure
         * @param array  $columns Columns to check ( Syntax: [ $col1, $col2, .. ] )
         *
         * @return boolean Does the table exist?
+        * @throws Exception
         */
        public static function existsColumn($table, $columns = [])
        {
@@ -815,6 +819,7 @@ class DBStructure
         * @param string $table Table name
         *
         * @return boolean Does the table exist?
+        * @throws Exception
         */
        public static function existsTable($table)
        {