From 5471c65c9a2c4a721fe30a6e384ee4f1d0578477 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 19 Feb 2015 19:40:36 +0100 Subject: [PATCH] less newlines for the scripts/upgrade.php output --- classes/File.php | 4 ++-- classes/File_redirection.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/File.php b/classes/File.php index 44bbbc5993..716e1cc2c6 100644 --- a/classes/File.php +++ b/classes/File.php @@ -623,7 +623,7 @@ class File extends Managed_DataObject // 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 ( @@ -637,7 +637,7 @@ class File extends Managed_DataObject $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), diff --git a/classes/File_redirection.php b/classes/File_redirection.php index b585ae7884..9309642553 100644 --- a/classes/File_redirection.php +++ b/classes/File_redirection.php @@ -367,7 +367,7 @@ class File_redirection extends Managed_DataObject // 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 ( @@ -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 - 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), -- 2.39.5