MCPcopy Create free account
hub / github.com/temporalio/temporal / ExpectedVersion

Method ExpectedVersion

common/persistence/sql/sqlplugin/postgresql/db.go:104–113  ·  view source on GitHub ↗

ExpectedVersion returns expected version.

()

Source from the content-addressed store, hash-verified

102
103// ExpectedVersion returns expected version.
104func (pdb *db) ExpectedVersion() string {
105 switch pdb.dbKind {
106 case sqlplugin.DbKindMain:
107 return postgresqlschemaV12.Version
108 case sqlplugin.DbKindVisibility:
109 return postgresqlschemaV12.VisibilityVersion
110 default:
111 panic(fmt.Sprintf("unknown db kind %v", pdb.dbKind))
112 }
113}
114
115// VerifyVersion verify schema version is up to date
116func (pdb *db) VerifyVersion() error {

Callers 1

VerifyVersionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected