wrong default
This commit is contained in:
parent
9cd776c593
commit
e7f5593f0c
|
@ -0,0 +1,5 @@
|
|||
alter table messages
|
||||
drop column glyph;
|
||||
|
||||
alter table messages
|
||||
add column glyph integer not null default 3;
|
|
@ -21,10 +21,14 @@ pub struct Message {
|
|||
pub word_2_list: Option<usize>,
|
||||
pub word_2_word: Option<usize>,
|
||||
|
||||
#[serde(default)]
|
||||
#[serde(default = "glyph_default")]
|
||||
pub glyph: i8,
|
||||
}
|
||||
|
||||
fn glyph_default() -> i8 {
|
||||
3
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
pub struct RetrievedMessage {
|
||||
pub id: String,
|
||||
|
|
Loading…
Reference in New Issue