]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
less newlines for the scripts/upgrade.php output
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 19 Feb 2015 18:40:36 +0000 (19:40 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 19 Feb 2015 18:40:36 +0000 (19:40 +0100)
classes/File.php
classes/File_redirection.php

index 44bbbc5993060888845b0813e079de8bcadbb21d..716e1cc2c6c449e84729fd94f48861706a1fc5be 100644 (file)
@@ -623,7 +623,7 @@ class File extends Managed_DataObject
             // We already have the urlhash field, so no need to migrate it.
             return;
         }
             // We already have the urlhash field, so no need to migrate it.
             return;
         }
-        echo "\nFound old $table table, upgrading it to contain 'urlhash' field...\n";
+        echo "\nFound old $table table, upgrading it to contain 'urlhash' field...";
         // We have to create a urlhash that is _not_ the primary key,
         // transfer data and THEN run checkSchema
         $schemadef['fields']['urlhash'] = array (
         // We have to create a urlhash that is _not_ the primary key,
         // transfer data and THEN run checkSchema
         $schemadef['fields']['urlhash'] = array (
@@ -637,7 +637,7 @@ class File extends Managed_DataObject
         $classname = ucfirst($table);
         $tablefix = new $classname;
         // urlhash is hash('sha256', $url) in the File table
         $classname = ucfirst($table);
         $tablefix = new $classname;
         // urlhash is hash('sha256', $url) in the File table
-        echo "Updating urlhash fields in $table table...\n";
+        echo "Updating urlhash fields in $table table...";
         // Maybe very MySQL specific :(
         $tablefix->query(sprintf('UPDATE %1$s SET %2$s=%3$s;',
                             $schema->quoteIdentifier($table),
         // Maybe very MySQL specific :(
         $tablefix->query(sprintf('UPDATE %1$s SET %2$s=%3$s;',
                             $schema->quoteIdentifier($table),
index b585ae78848cc148437dd0baf5e35a32d3d6d706..9309642553b0de545a4da26291376018500c5bbc 100644 (file)
@@ -367,7 +367,7 @@ class File_redirection extends Managed_DataObject
             // We already have the urlhash field, so no need to migrate it.
             return;
         }
             // We already have the urlhash field, so no need to migrate it.
             return;
         }
-        echo "\nFound old $table table, upgrading it to contain 'urlhash' field...\n";
+        echo "\nFound old $table table, upgrading it to contain 'urlhash' field...";
         // We have to create a urlhash that is _not_ the primary key,
         // transfer data and THEN run checkSchema
         $schemadef['fields']['urlhash'] = array (
         // We have to create a urlhash that is _not_ the primary key,
         // transfer data and THEN run checkSchema
         $schemadef['fields']['urlhash'] = array (
@@ -381,7 +381,7 @@ class File_redirection extends Managed_DataObject
         $classname = ucfirst($table);
         $tablefix = new $classname;
         // urlhash is hash('sha256', $url) in the File table
         $classname = ucfirst($table);
         $tablefix = new $classname;
         // urlhash is hash('sha256', $url) in the File table
-        echo "Updating urlhash fields in $table table...\n";
+        echo "Updating urlhash fields in $table table...";
         // Maybe very MySQL specific :(
         $tablefix->query(sprintf('UPDATE %1$s SET %2$s=%3$s;',
                             $schema->quoteIdentifier($table),
         // Maybe very MySQL specific :(
         $tablefix->query(sprintf('UPDATE %1$s SET %2$s=%3$s;',
                             $schema->quoteIdentifier($table),