Skip to content

Commit

Permalink
Update cmd/internal/database/postgres/upgrade.go
Browse files Browse the repository at this point in the history
Co-authored-by: Gerrit <[email protected]>
  • Loading branch information
majst01 and Gerrit91 committed Aug 21, 2023
1 parent 128807e commit 8230568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/internal/database/postgres/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ var (
requiredCommands = []string{postgresUpgradeCmd, postgresConfigCmd, postgresInitDBCmd}
)

// Upgrade indicates whether the database files are from a previous version of and need to be upgraded.
// Upgrade performs an upgrade of the database in case a newer version of the database is detected.
//
// The function aborts the update without returning an error as long as the old data stays unmodified and only prints out the error to console. This behavior is intended to reduce unnecessary downtime caused by misconfigurations.
// If any preconditions are not met, no error is returned, a info log entry is created with the reason.
// Once the upgrade was made, any error condition will require to recover the database from backup.
func (db *Postgres) Upgrade() error {
Expand Down

0 comments on commit 8230568

Please sign in to comment.