allow null calldata
This commit is contained in:
parent
bbaa32e7b5
commit
a3bba43360
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -5546,6 +5546,7 @@ dependencies = [
|
|||||||
"moka",
|
"moka",
|
||||||
"notify",
|
"notify",
|
||||||
"num",
|
"num",
|
||||||
|
"num-traits",
|
||||||
"parking_lot 0.12.1",
|
"parking_lot 0.12.1",
|
||||||
"petgraph",
|
"petgraph",
|
||||||
"proctitle",
|
"proctitle",
|
||||||
|
@ -13,8 +13,8 @@ pub struct Model {
|
|||||||
pub timestamp: DateTimeUtc,
|
pub timestamp: DateTimeUtc,
|
||||||
pub method: Method,
|
pub method: Method,
|
||||||
pub to: Vec<u8>,
|
pub to: Vec<u8>,
|
||||||
#[sea_orm(column_type = "Text")]
|
#[sea_orm(column_type = "Text", nullable)]
|
||||||
pub call_data: String,
|
pub call_data: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -61,7 +61,7 @@ impl MigrationTrait for Migration {
|
|||||||
.not_null(),
|
.not_null(),
|
||||||
)
|
)
|
||||||
.col(ColumnDef::new(RevertLogs::To).binary_len(20).not_null())
|
.col(ColumnDef::new(RevertLogs::To).binary_len(20).not_null())
|
||||||
.col(ColumnDef::new(RevertLogs::CallData).text().not_null())
|
.col(ColumnDef::new(RevertLogs::CallData).text().null())
|
||||||
.index(sea_query::Index::create().col(RevertLogs::To))
|
.index(sea_query::Index::create().col(RevertLogs::To))
|
||||||
.foreign_key(
|
.foreign_key(
|
||||||
sea_query::ForeignKey::create()
|
sea_query::ForeignKey::create()
|
||||||
|
Loading…
Reference in New Issue
Block a user