fixing tests4 - columns have required flag from now on

This commit is contained in:
Priec
2026-08-09 01:32:29 +02:00
parent 36de1b2fde
commit 29ccd8d2d7
6 changed files with 9 additions and 2 deletions

2
client

Submodule client updated: 949b8c784d...443d7b9ab9

View File

@@ -193,6 +193,9 @@ message ColumnDefinition {
// Canonical uppercase ISO-4217 currency code. Required for MONEY and forbidden
// for every other field type.
string currency = 5;
// When true, the server rejects omitted or explicitly null values.
bool required = 6;
}
// Response after table creation (success + DDL preview).

Binary file not shown.

View File

@@ -158,6 +158,9 @@ pub struct ColumnDefinition {
/// for every other field type.
#[prost(string, tag = "5")]
pub currency: ::prost::alloc::string::String,
/// When true, the server rejects omitted or explicitly null values.
#[prost(bool, tag = "6")]
pub required: bool,
}
/// Response after table creation (success + DDL preview).
#[derive(serde::Serialize, serde::Deserialize)]

2
server

Submodule server updated: 4fe6da6ac7...f094509691

View File

@@ -731,6 +731,7 @@ pub(crate) fn proto_columns(columns: &[ColumnDefinition]) -> Vec<ProtoColumnDefi
},
quantity_ledger: column.quantity_ledger,
currency: column.currency.clone(),
required: false,
})
.collect()
}