Codegen supports ColumnType::TimestampWithTimeZone
This commit is contained in:
parent
6435b51d09
commit
ffb0f1f07d
@ -22,7 +22,7 @@ clap = { version = "^2.33.3" }
|
|||||||
dotenv = { version = "^0.15" }
|
dotenv = { version = "^0.15" }
|
||||||
async-std = { version = "^1.9", features = [ "attributes" ] }
|
async-std = { version = "^1.9", features = [ "attributes" ] }
|
||||||
sea-orm-codegen = { version = "^0.2.0", path = "../sea-orm-codegen" }
|
sea-orm-codegen = { version = "^0.2.0", path = "../sea-orm-codegen" }
|
||||||
sea-schema = { version = "^0.2.8", git = "https://github.com/SeaQL/sea-schema.git", default-features = false, features = [
|
sea-schema = { version = "^0.2.8", git = "https://github.com/SeaQL/sea-schema.git", branch = "pg-timestamp-tz", default-features = false, features = [
|
||||||
"debug-print",
|
"debug-print",
|
||||||
"sqlx-mysql",
|
"sqlx-mysql",
|
||||||
"sqlx-postgres",
|
"sqlx-postgres",
|
||||||
|
@ -38,6 +38,7 @@ impl Column {
|
|||||||
ColumnType::Double(_) => "f64",
|
ColumnType::Double(_) => "f64",
|
||||||
ColumnType::Json | ColumnType::JsonBinary => "Json",
|
ColumnType::Json | ColumnType::JsonBinary => "Json",
|
||||||
ColumnType::DateTime(_) | ColumnType::Timestamp(_) => "DateTime",
|
ColumnType::DateTime(_) | ColumnType::Timestamp(_) => "DateTime",
|
||||||
|
ColumnType::TimestampWithTimeZone(_) => "DateTimeWithTimeZone",
|
||||||
ColumnType::Decimal(_) | ColumnType::Money(_) => "Decimal",
|
ColumnType::Decimal(_) | ColumnType::Money(_) => "Decimal",
|
||||||
ColumnType::Uuid => "Uuid",
|
ColumnType::Uuid => "Uuid",
|
||||||
ColumnType::Binary(_) => "Vec<u8>",
|
ColumnType::Binary(_) => "Vec<u8>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user