Skip to content

Commit

Permalink
clusterversion: remove unused timestamp-related cluster versions
Browse files Browse the repository at this point in the history
Remove `VersionTimeTZType` and `VersionTimePrecision`, which are unused.

Release note: None
  • Loading branch information
thoszhang committed Oct 19, 2020
1 parent 3e3aaf3 commit a42f026
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 40 deletions.
12 changes: 0 additions & 12 deletions pkg/clusterversion/cockroach_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ const (
VersionStatementDiagnosticsSystemTables
VersionSchemaChangeJob
VersionSavepoints
VersionTimeTZType
VersionTimePrecision
Version20_1
VersionStart20_2
VersionGeospatialType
Expand Down Expand Up @@ -293,16 +291,6 @@ var versionsSingleton = keyedVersions([]keyedVersion{
Key: VersionSavepoints,
Version: roachpb.Version{Major: 19, Minor: 2, Unstable: 16},
},
{
// VersionTimeTZType enables the use of the TimeTZ data type.
Key: VersionTimeTZType,
Version: roachpb.Version{Major: 19, Minor: 2, Unstable: 17},
},
{
// VersionTimePrecision enables the use of precision with time/intervals.
Key: VersionTimePrecision,
Version: roachpb.Version{Major: 19, Minor: 2, Unstable: 18},
},
{
// Version20_1 is CockroachDB v20.1. It's used for all v20.1.x patch releases.
Key: Version20_1,
Expand Down
54 changes: 26 additions & 28 deletions pkg/clusterversion/versionkey_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a42f026

Please sign in to comment.