]> source.dussan.org Git - redmine.git/commitdiff
Format table list.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Apr 2014 23:11:47 +0000 (23:11 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 3 Apr 2014 23:11:47 +0000 (23:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13036 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/redmine.rake

index c8d35afb28365980102330a61fa9d85f2d293591..c9ee517ecb50d71eecb38cd10156a11e095ef7b2 100644 (file)
@@ -68,7 +68,8 @@ DESC
     tables = ActiveRecord::Base.connection.tables.sort - %w(schema_migrations plugin_schema_info)
 
     if (tables - target_tables).any?
-      abort "The following table(s) are missing from the target database: #{(tables - target_tables).join(', ')}"
+      list = (tables - target_tables).map {|table| "* #{table}"}.join("\n")
+      abort "The following table(s) are missing from the target database:\n#{list}"
     end
 
     tables.each do |table_name|