Skip to content

Commit

Permalink
fix(db_migration): use string (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Feb 13, 2024
1 parent c7942bf commit 0edf7e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/db_migration/src/m20240131_000001_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(User::FeedJson).string())
.col(ColumnDef::new(User::FeedAtom).string())
.col(ColumnDef::new(User::FeedRss).string())
.col(ColumnDef::new(User::LastRefreshedAt).date_time().not_null())
.col(ColumnDef::new(User::LastRefreshedAt).string().not_null())
.to_owned(),
)
.await?;
Expand Down
2 changes: 1 addition & 1 deletion crates/db_migration/src/m20240131_000003_post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(Post::InReplyToRoot).string())
.col(ColumnDef::new(Post::Published).date_time().not_null())
.col(ColumnDef::new(Post::Updated).date_time())
.col(ColumnDef::new(Post::LastRefreshedAt).date_time().not_null())
.col(ColumnDef::new(Post::LastRefreshedAt).string().not_null())
.col(ColumnDef::new(Post::Local).boolean().not_null())
.to_owned(),
)
Expand Down

0 comments on commit 0edf7e5

Please sign in to comment.