fix compilation

This commit is contained in:
dignifiedquire
2020-06-24 11:06:26 +02:00
parent 876e3ed58e
commit 2d5caf9d3e
3 changed files with 6 additions and 5 deletions

View File

@@ -2172,7 +2172,7 @@ impl sqlx::encode::Encode<'_, sqlx::sqlite::Sqlite> for MuteDuration {
impl<'de> sqlx::decode::Decode<'de, sqlx::sqlite::Sqlite> for MuteDuration {
fn decode(
value: sqlx::sqlite::SqliteValueRef,
) -> std::result::Result<Self, sqlx::error::BoxDynError> {
) -> std::result::Result<Self, Box<dyn std::error::Error + 'static + Send + Sync>> {
// Negative values other than -1 should not be in the
// database. If found they'll be NotMuted.
let raw: i32 = sqlx::decode::Decode::decode(value)?;

View File

@@ -364,14 +364,15 @@ ALTER TABLE chats ADD COLUMN muted_until INTEGER DEFAULT 0;
UPDATE chats SET grpid='' WHERE type=100;
"#,
)
.await?;
.await?;
migrate(
64,
r#"
ALTER TABLE msgs ADD COLUMN error TEXT DEFAULT '';
"#,
).await?;
)
.await?;
Ok(())
}