|
2 | 2 | // |
3 | 3 | // Use of this software is governed by the CockroachDB Software License |
4 | 4 | // included in the /LICENSE file. |
| 5 | +// |
| 6 | +// This file is used by `element_generator.go` to build `elements_generated.go`. |
| 7 | +// It's sensitive to formatting; tools such as `buf format` aren't recommended. |
5 | 8 |
|
6 | 9 | syntax = "proto3"; |
7 | 10 | package cockroach.sql.schemachanger.scpb; |
@@ -109,6 +112,7 @@ message ElementProto { |
109 | 112 | ColumnComment column_comment = 35 [(gogoproto.moretags) = "parent:\"Column\""]; |
110 | 113 | ColumnNotNull column_not_null = 36 [(gogoproto.moretags) = "parent:\"Column\""]; |
111 | 114 | ColumnComputeExpression column_compute_expression = 190 [(gogoproto.moretags) = "parent:\"Column\""]; |
| 115 | + ColumnHidden column_hidden = 191 [(gogoproto.moretags) = "parent:\"Column\""]; |
112 | 116 |
|
113 | 117 | // Sequence elements. |
114 | 118 | SequenceOption sequence_option = 37 [(gogoproto.moretags) = "parent:\"Sequence\""]; |
@@ -217,7 +221,9 @@ message Expression { |
217 | 221 | message Column { |
218 | 222 | uint32 table_id = 1 [(gogoproto.customname) = "TableID", (gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid.DescID"]; |
219 | 223 | uint32 column_id = 2 [(gogoproto.customname) = "ColumnID", (gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid.ColumnID"]; |
220 | | - bool is_hidden = 3; |
| 224 | + // Deprecated. |
| 225 | + // The hidden attribute is now handled as a separate element (see ColumnHidden). |
| 226 | + bool is_hidden = 3 [deprecated = true]; |
221 | 227 | bool is_inaccessible = 4; |
222 | 228 | uint32 generated_as_identity_type = 5 [(gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/catalog/catpb.GeneratedAsIdentityType"]; |
223 | 229 | string generated_as_identity_sequence_option = 6; |
@@ -274,6 +280,12 @@ message ColumnComputeExpression { |
274 | 280 | Usage usage = 5; |
275 | 281 | } |
276 | 282 |
|
| 283 | +message ColumnHidden { |
| 284 | + uint32 table_id = 1 [(gogoproto.customname) = "TableID", (gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid.DescID"]; |
| 285 | + uint32 column_id = 2 [(gogoproto.customname) = "ColumnID", (gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid.ColumnID"]; |
| 286 | +} |
| 287 | + |
| 288 | + |
277 | 289 | message ColumnFamily { |
278 | 290 | uint32 table_id = 1 [(gogoproto.customname) = "TableID", (gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid.DescID"]; |
279 | 291 | uint32 family_id = 2 [(gogoproto.customname) = "FamilyID", (gogoproto.casttype) = "github.com/cockroachdb/cockroach/pkg/sql/sem/catid.FamilyID"]; |
@@ -1013,4 +1025,5 @@ message FunctionSecurity { |
1013 | 1025 | message ElementCreationMetadata { |
1014 | 1026 | bool in_23_1_or_later = 1; |
1015 | 1027 | bool in_24_3_or_later = 2; |
| 1028 | + bool in_26_1_or_later = 3; |
1016 | 1029 | } |
0 commit comments