]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Writer/DbaDefinitionSqlWriter.php
Fix: Pagination in search result works again
[friendica.git] / src / Util / Writer / DbaDefinitionSqlWriter.php
index f5e41847feef5c613dd606932e5dce5d08a949e8..786eb866507f7aa88984453c370c193b443564b8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Util\Writer;
 
 use Exception;
+use Friendica\App;
 use Friendica\Database\Definition\DbaDefinition;
 
 /**
@@ -41,7 +42,7 @@ class DbaDefinitionSqlWriter
        public static function create(DbaDefinition $definition): string
        {
                $sqlString = "-- ------------------------------------------\n";
-               $sqlString .= "-- " . FRIENDICA_PLATFORM . " " . FRIENDICA_VERSION . " (" . FRIENDICA_CODENAME . ")\n";
+               $sqlString .= "-- " . App::PLATFORM . " " . App::VERSION . " (" . App::CODENAME . ")\n";
                $sqlString .= "-- DB_UPDATE_VERSION " . DB_UPDATE_VERSION . "\n";
                $sqlString .= "-- ------------------------------------------\n\n\n";
 
@@ -177,7 +178,7 @@ class DbaDefinitionSqlWriter
         * Creates the SQL definition to modify a table field
         *
         * @param string $fieldName  The table field name
-        * @param array  $parameters The paramters to modify
+        * @param array  $parameters The parameters to modify
         *
         * @return string The SQL definition
         */
@@ -234,7 +235,7 @@ class DbaDefinitionSqlWriter
         * @param string $method     The method to create the index (default is ADD)
         *
         * @return string The SQL definition
-        * @throws Exception in cases the paramter contains invalid content
+        * @throws Exception in cases the parameter contains invalid content
         */
        public static function createIndex(string $indexName, array $fieldNames, string $method = 'ADD'): string
        {