Update schema version check text

This commit is contained in:
Jeff Mitchell committed 2021-02-09 13:42:14 -05:00
1 parent f97ffebaaf
commit b61dd0ef36
1 file changed
+2 -2
+2 -2
View File
@@ -371,7 +371,7 @@ func (c *Command) Run(args []string) int {
// 1 second is chosen so the shutdown is still responsive and this is a mostly
// non critical step since the lock should be released when the session with the
// database is closed.
ctx, cancel := context.WithTimeout(context.Background(), 1 * time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
defer cancel()
if err := sMan.SharedUnlock(ctx); err != nil {
c.UI.Error(fmt.Errorf("Unable to release shared lock to the database: %w", err).Error())
@@ -391,7 +391,7 @@ func (c *Command) Run(args []string) int {
return 1
}
if ckState.BinarySchemaVersion > ckState.DatabaseSchemaVersion {
c.UI.Error(base.WrapAtLength("Database schema must be updated to use this version. Run 'boundary database migrate' to update the database."))
c.UI.Error(base.WrapAtLength("Database schema must be updated to use this version. Run 'boundary database migrate' to update the database. NOTE: Boundary does not currently support live migration; ensure all controllers are shut down before running the migration command."))
return 1
}
if ckState.BinarySchemaVersion < ckState.DatabaseSchemaVersion {