Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3556ae0

Browse filesBrowse files
committed
mysql use VARCHAR
1 parent 9cebf0b commit 3556ae0
Copy full SHA for 3556ae0

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎Cargo.toml

Copy file name to clipboardExpand all lines: Cargo.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88

99
[package]
1010
name = "rbatis"
11-
version = "4.5.46"
11+
version = "4.5.47"
1212
description = "The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL"
1313
readme = "Readme.md"
1414
authors = ["ce <zhuxiujia@qq.com>"]

‎src/plugin/table_sync/mysql_mapper.rs

Copy file name to clipboardExpand all lines: src/plugin/table_sync/mysql_mapper.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl ColumnMapper for MysqlTableMapper {
3030
if column.eq("id") || column.ends_with("_id") || column.starts_with("id_") {
3131
return "VARCHAR(50)".to_string();
3232
}
33-
"TEXT".to_string()
33+
"VARCHAR(100)".to_string()
3434
}
3535
}
3636
Value::Binary(_) => "BLOB".to_string(),
@@ -43,7 +43,7 @@ impl ColumnMapper for MysqlTableMapper {
4343
"Timestamp" => "TIMESTAMP".to_string(),
4444
"Decimal" => "DECIMAL".to_string(),
4545
"Json" => "JSON".to_string(),
46-
"Uuid" => "TEXT".to_string(),
46+
"Uuid" => "VARCHAR(50)".to_string(),
4747
_ => "NULL".to_string(),
4848
},
4949
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.