]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBStructure.php
BBCode - fixed syntax error
[friendica.git] / src / Database / DBStructure.php
index 1a556b7bc7901a30cfa3d9cea38bcc9d8ed15119..7d52e60caec13d53a0b0b811754932c76ca121ed 100644 (file)
@@ -12,10 +12,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Util\DateTimeFormat;
 
-require_once 'boot.php';
 require_once 'include/dba.php';
-require_once 'include/enotify.php';
-require_once 'include/text.php';
 
 /**
  * @brief This class contain functions for the database management
@@ -256,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)
        {
@@ -720,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)
        {
@@ -780,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 = [])
        {
@@ -820,6 +819,7 @@ class DBStructure
         * @param string $table Table name
         *
         * @return boolean Does the table exist?
+        * @throws Exception
         */
        public static function existsTable($table)
        {