Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Apr 29, 2024
1 parent bef3302 commit 8d02f40
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/mysql/src/entities/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct Model {
pub city_id: i32,
pub postal_code: Option<String>,
pub phone: String,
#[sea_orm(column_type = "VarBinary(25)", nullable)]
#[sea_orm(column_type = "VarBinary(StringLen::N(25))", nullable)]
pub location: Option<Vec<u8>>,
pub last_update: DateTimeUtc,
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mysql/src/entities/staff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Model {
pub last_name: String,
pub address_id: i32,
pub reports_to_id: Option<i32>,
#[sea_orm(column_type = "Binary(BlobSize::Blob(None))", nullable)]
#[sea_orm(column_type = "Binary(255)", nullable)]
pub picture: Option<Vec<u8>>,
pub email: Option<String>,
pub store_id: i32,
Expand Down
2 changes: 1 addition & 1 deletion examples/postgres/src/entities/staff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Model {
pub username: String,
pub password: Option<String>,
pub last_update: DateTime,
#[sea_orm(column_type = "Binary(BlobSize::Blob(None))", nullable)]
#[sea_orm(column_type = "Binary(255)", nullable)]
pub picture: Option<Vec<u8>>,
}

Expand Down
2 changes: 1 addition & 1 deletion examples/sqlite/src/entities/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use sea_orm::entity::prelude::*;
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub language_id: i16,
#[sea_orm(column_type = "Binary(BlobSize::Blob(None))")]
#[sea_orm(column_type = "Binary(255)")]
pub name: Vec<u8>,
pub last_update: DateTimeUtc,
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sqlite/src/entities/staff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct Model {
pub last_name: String,
pub address_id: i32,
pub reports_to_id: Option<i16>,
#[sea_orm(column_type = "Binary(BlobSize::Blob(None))", nullable)]
#[sea_orm(column_type = "Binary(255)", nullable)]
pub picture: Option<Vec<u8>>,
pub email: Option<String>,
pub store_id: i32,
Expand Down

0 comments on commit 8d02f40

Please sign in to comment.