| 330 | } |
| 331 | |
| 332 | func convertToRevisionType(t storepb.SchemaChangeType) v1pb.Revision_Type { |
| 333 | //exhaustive:enforce |
| 334 | switch t { |
| 335 | case storepb.SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED: |
| 336 | return v1pb.Revision_TYPE_UNSPECIFIED |
| 337 | case storepb.SchemaChangeType_VERSIONED: |
| 338 | return v1pb.Revision_VERSIONED |
| 339 | case storepb.SchemaChangeType_DECLARATIVE: |
| 340 | return v1pb.Revision_DECLARATIVE |
| 341 | default: |
| 342 | return v1pb.Revision_TYPE_UNSPECIFIED |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | func convertRevision(revision *v1pb.Revision, database *store.DatabaseMessage, sheetSha256 string) *store.RevisionMessage { |
| 347 | file := revision.File |