fix: datetime utc, also in likes
redo all migrations ehe
This commit is contained in:
parent
490358e9ed
commit
b90f7307bc
3 changed files with 4 additions and 1 deletions
|
@ -19,6 +19,7 @@ impl MigrationTrait for Migration {
|
|||
)
|
||||
.col(ColumnDef::new(Likes::Actor).string().not_null())
|
||||
.col(ColumnDef::new(Likes::Likes).string().not_null())
|
||||
.col(ColumnDef::new(Likes::Date).date_time().not_null())
|
||||
.to_owned()
|
||||
)
|
||||
.await?;
|
||||
|
@ -64,6 +65,7 @@ enum Likes {
|
|||
Id,
|
||||
Actor,
|
||||
Likes,
|
||||
Date,
|
||||
}
|
||||
|
||||
#[derive(DeriveIden)]
|
||||
|
|
|
@ -7,6 +7,7 @@ pub struct Model {
|
|||
pub id: i64,
|
||||
pub actor: String,
|
||||
pub likes: String,
|
||||
pub date: ChronoDateTimeUtc,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
|
|
@ -7,7 +7,7 @@ pub struct Model {
|
|||
pub id: i64,
|
||||
pub actor: String,
|
||||
pub shares: String,
|
||||
pub date: ChronoDateTime,
|
||||
pub date: ChronoDateTimeUtc,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
|
Loading…
Reference in a new issue