aliasing can now move things around

This commit is contained in:
Priec
2026-08-15 09:17:32 +02:00
parent c3f5046c85
commit 6ef2694fef
9 changed files with 25 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ impl TableSummary {
#[derive(Clone, Debug)]
pub(crate) struct TableDetailView {
pub id: i64,
pub row_version: i64,
pub row_display_columns: Vec<String>,
pub columns: Vec<DetailColumn>,
pub scripts: Vec<ScriptView>,
@@ -181,6 +182,8 @@ pub(crate) struct PresentationForm {
#[serde(default)]
pub table: String,
#[serde(default)]
pub expected_row_version: i64,
#[serde(default)]
pub column_ids: Vec<i64>,
#[serde(default)]
pub aliases: Vec<String>,
@@ -387,6 +390,7 @@ mod tests {
fn provenance_and_renameability_are_independent() {
let detail = TableDetailView {
id: 1,
row_version: 1,
row_display_columns: Vec::new(),
scripts: Vec::new(),
columns: vec![