Change migration

This commit is contained in:
jude 2023-09-23 15:16:45 +01:00
parent 6f1ef206df
commit 4bc7ae8e23
2 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
ALTER TABLE reminders ADD COLUMN `status_change_time` DATETIME; ALTER TABLE reminders ADD COLUMN `status_change_time` DATETIME;
-- This is a best-guess as to the status change time. -- This is a best-guess as to the status change time.
UPDATE reminders SET `status_change_time` = `utc_time`; UPDATE reminders SET `status_change_time` = `utc_time` WHERE `status` != 'pending';

View File

@ -323,15 +323,7 @@ pub fn generate_uid() -> String {
mod string { mod string {
use std::{fmt::Display, str::FromStr}; use std::{fmt::Display, str::FromStr};
use serde::{de, Deserialize, Deserializer, Serializer}; use serde::{de, Deserialize, Deserializer};
pub fn serialize<T, S>(value: &T, serializer: S) -> Result<S::Ok, S::Error>
where
T: Display,
S: Serializer,
{
serializer.collect_str(value)
}
pub fn deserialize<'de, T, D>(deserializer: D) -> Result<T, D::Error> pub fn deserialize<'de, T, D>(deserializer: D) -> Result<T, D::Error>
where where