firma bug in table creation was fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// src/server/services/tables_data_service.rs
|
// src/server/services/tables_data_service.rs
|
||||||
use tonic::{Request, Response, Status};
|
use tonic::{Request, Response, Status};
|
||||||
use common::proto::multieko2::tables_data::tables_data_server::TablesData;
|
use common::proto::multieko2::tables_data::tables_data_server::TablesData;
|
||||||
use common::proto::multieko2::common::{CountResponse, PositionRequest};
|
use common::proto::multieko2::common::CountResponse;
|
||||||
use common::proto::multieko2::tables_data::{
|
use common::proto::multieko2::tables_data::{
|
||||||
PostTableDataRequest, PostTableDataResponse,
|
PostTableDataRequest, PostTableDataResponse,
|
||||||
PutTableDataRequest, PutTableDataResponse,
|
PutTableDataRequest, PutTableDataResponse,
|
||||||
|
|||||||
@@ -168,7 +168,6 @@ fn generate_table_sql(
|
|||||||
let mut system_columns = vec![
|
let mut system_columns = vec![
|
||||||
"id BIGSERIAL PRIMARY KEY".to_string(),
|
"id BIGSERIAL PRIMARY KEY".to_string(),
|
||||||
"deleted BOOLEAN NOT NULL DEFAULT FALSE".to_string(),
|
"deleted BOOLEAN NOT NULL DEFAULT FALSE".to_string(),
|
||||||
"firma TEXT NOT NULL".to_string(),
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if let Some(linked) = linked_table {
|
if let Some(linked) = linked_table {
|
||||||
@@ -195,9 +194,7 @@ fn generate_table_sql(
|
|||||||
all_columns.join(",\n ")
|
all_columns.join(",\n ")
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut system_indexes = vec![
|
let mut system_indexes = vec![];
|
||||||
format!("CREATE INDEX idx_{}_firma ON \"{}\" (firma)", table_name, table_name),
|
|
||||||
];
|
|
||||||
|
|
||||||
if let Some(linked) = linked_table {
|
if let Some(linked) = linked_table {
|
||||||
let parts: Vec<&str> = linked.splitn(2, '_').collect();
|
let parts: Vec<&str> = linked.splitn(2, '_').collect();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// src/tables_data/handlers/get_table_data_count.rs
|
// src/tables_data/handlers/get_table_data_count.rs
|
||||||
use tonic::Status;
|
use tonic::Status;
|
||||||
use sqlx::PgPool;
|
use sqlx::PgPool;
|
||||||
use common::proto::multieko2::common::{CountResponse, Empty};
|
use common::proto::multieko2::common::CountResponse;
|
||||||
use common::proto::multieko2::tables_data::GetTableDataCountRequest;
|
use common::proto::multieko2::tables_data::GetTableDataCountRequest;
|
||||||
|
|
||||||
pub async fn get_table_data_count(
|
pub async fn get_table_data_count(
|
||||||
|
|||||||
Reference in New Issue
Block a user