delete table

This commit is contained in:
filipriec
2025-03-03 15:15:30 +01:00
parent 9e0881032f
commit f9cf54e67c
7 changed files with 212 additions and 14 deletions

View File

@@ -101,15 +101,6 @@ pub async fn post_table_definition(
}
// Process indexes without year prefix
let mut indexes = Vec::new();
for idx in request.indexes.drain(..) {
let idx_name = sanitize_identifier(&idx); // No year prefix
if !is_valid_identifier(&idx) {
return Err(Status::invalid_argument(format!("Invalid index name: {}", idx)));
}
indexes.push(idx_name);
}
let mut indexes = Vec::new();
for idx in request.indexes.drain(..) {
let idx_name = sanitize_identifier(&idx);