embed migrations, fix start, add stop
This commit is contained in:
@ -32,7 +32,7 @@ impl FromSql<SmallInt, Sqlite> for ServerStatus{
|
||||
impl ToSql<SmallInt, Sqlite> for ServerStatus {
|
||||
fn to_sql<'b>(&'b self, out: &mut Output<'b, '_, Sqlite>) -> diesel::serialize::Result {
|
||||
let value: i16 = self.clone() as i16;
|
||||
out.set_value(value.to_le_bytes().to_vec());
|
||||
out.set_value(value as i32);
|
||||
Ok(diesel::serialize::IsNull::No)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user