Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/models/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct TableColumn {
pub data_type: String,
pub recommended_rust_type: Option<String>,
pub is_nullable: bool,
pub array_depth: i16,
pub array_depth: i32,
pub is_unique: bool,
pub is_primary_key: bool,
pub foreign_key_table: Option<String>,
Expand Down Expand Up @@ -47,7 +47,7 @@ pub struct TableColumnBuilder {
udt_name: String,
data_type: String,
is_nullable: bool,
array_depth: i16,
array_depth: i32,
is_unique: bool,
is_primary_key: bool,
foreign_key_table: Option<String>,
Expand Down Expand Up @@ -83,7 +83,7 @@ impl TableColumnBuilder {
self
}

pub fn array_depth(mut self, depth: i16) -> Self {
pub fn array_depth(mut self, depth: i32) -> Self {
self.array_depth = depth;
self
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/models/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct RustDbSetField {
pub field_name: String,
pub field_type: String,
pub is_optional: bool,
pub array_depth: i16,
pub array_depth: i32,
pub attributes: Vec<RustDbSetAttribute>,
pub comment: Option<String>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/mysql/models/mysql_table_column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct MySqlTableColumn {
pub udt_name: String,
pub data_type: String,
pub is_nullable: bool,
pub array_depth: i16,
pub array_depth: i32,
pub is_unique: bool,
pub is_primary_key: bool,
pub foreign_key_table: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion src/postgres/models/postgres_table_column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct PostgresTableColumn {
pub udt_name: String,
pub data_type: String,
pub is_nullable: bool,
pub array_depth: i16,
pub array_depth: i32,
pub is_unique: bool,
pub is_primary_key: bool,
pub foreign_key_table: Option<String>,
Expand Down
Loading