Skip to content

Commit

Permalink
Move the db:check_schema task to the public tasks.rake file
Browse files Browse the repository at this point in the history
This will allow it to be used by users when attempting to correct
column ordering issues after migrating

https://bugzilla.redhat.com/show_bug.cgi?id=1508537
  • Loading branch information
carbonin committed Nov 8, 2017
1 parent 3225fb4 commit 863e6cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/schema_tasks.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace :db do
desc 'Check the current schema against the schema.yml file for inconsistencies'
task :check_schema => :environment do
message = ManageIQ::Schema::Checker.check_schema
raise message if message
puts "The local schema is consistent with schema.yml"
end
end
7 changes: 0 additions & 7 deletions lib/tasks_private/schema_tasks.rake
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
namespace :db do
desc 'Check the current schema against the schema.yml file for inconsistencies'
task :check_schema => :environment do
message = ManageIQ::Schema::Checker.check_schema
raise message if message
puts "The local schema is consistent with schema.yml"
end

desc 'Write the current schema to the schema.yml file'
task :write_schema => :environment do
ManageIQ::Schema::Checker.write_expected_schema
Expand Down

0 comments on commit 863e6cd

Please sign in to comment.