working well now, creation of the columns

This commit is contained in:
filipriec
2025-06-06 20:18:51 +02:00
parent 4ec569342d
commit d0722fbbbe

View File

@@ -156,8 +156,8 @@ async fn execute_table_definition(
RETURNING id"#, RETURNING id"#,
profile.id, profile.id,
&table_name, &table_name,
json!(request.columns.iter().map(|c| c.name.clone()).collect::<Vec<_>>()), json!(columns),
json!(request.indexes.iter().map(|i| i.clone()).collect::<Vec<_>>()) json!(indexes)
) )
.fetch_one(&mut **tx) .fetch_one(&mut **tx)
.await .await