This commit is contained in:
aprilthepink 2024-04-18 04:03:52 +02:00
parent 4d4e3ed794
commit fa3e4634cb
7 changed files with 69 additions and 19 deletions

View file

@ -8,8 +8,9 @@ pub struct Migration;
#[async_trait::async_trait]
impl MigrationTrait for Migration {
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
manager.drop_table(Table::drop().table(Post::Table).to_owned()).await?;
manager
.drop_table(Table::drop().table(Post::Table).to_owned())
.await?;
manager
.create_table(