Build a two-column "base" schema (id INT64, name TEXT) encoded as a tuple, then decode it against a four-column "current" schema that added two columns via ALTER.
()
| 832 | /// tuple, then decode it against a four-column "current" schema that added |
| 833 | /// two columns via ALTER. |
| 834 | fn base_schema() -> StrictSchema { |
| 835 | StrictSchema::new(vec![ |
| 836 | ColumnDef::required("id", ColumnType::Int64).with_primary_key(), |
| 837 | ColumnDef::required("name", ColumnType::String), |
| 838 | ]) |
| 839 | .unwrap() |
| 840 | } |
| 841 | |
| 842 | fn base_tuple() -> Vec<u8> { |
| 843 | TupleEncoder::new(&base_schema()) |
no outgoing calls