How can I upgrade the Red Hat Satellite 6 database schema?

Solution Verified - Updated -

Issue

  • How can I upgrade the Red Hat Satellite 6 database schema?
  • After updating my Red Hat Satellite 6 RPM packages, how can I update the database schema?
  • Do Red Hat Satellite 6 has a spacewalk-schema-upgrade equivalent?

The schema is the metadata of the database - it's the tables, the fields in the tables, the types of each field, the indexes, the foreign key relationships, the stored procedures, etc.
So at a particular point in time, the schema exists in a particular state, and that can be considered a version of the schema.

We do schema upgrades to add or update the data we collect, to add or modify relationships between that data, or to provide better checks for integrity within the data.

A schema upgrade usually accompanies a corresponding change in the code to provide a new feature or improved functionality.
When you run foreman-rake db:migrate you are upgrading the schema, you should only need to run this if your server recently went through an
upgrade and it was found that the old schema wasn't updated.

This can happen in some situations of a katello-installer failing on foreman-rake db:migrate

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content