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",
|
||||
"notify",
|
||||
"num",
|
||||
"num-traits",
|
||||
"parking_lot 0.12.1",
|
||||
"petgraph",
|
||||
"proctitle",
|
||||
|
@ -13,8 +13,8 @@ pub struct Model {
|
||||
pub timestamp: DateTimeUtc,
|
||||
pub method: Method,
|
||||
pub to: Vec<u8>,
|
||||
#[sea_orm(column_type = "Text")]
|
||||
pub call_data: String,
|
||||
#[sea_orm(column_type = "Text", nullable)]
|
||||
pub call_data: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
@ -61,7 +61,7 @@ impl MigrationTrait for Migration {
|
||||
.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))
|
||||
.foreign_key(
|
||||
sea_query::ForeignKey::create()
|
||||
|
Loading…
Reference in New Issue
Block a user