From 891fb7b0b3b30f463596af46e323e1c7ee70c3ba Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 18 Jun 2023 16:15:02 -0700 Subject: [PATCH] copypasta --- migration/src/m20230618_230611_longer_payload.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/migration/src/m20230618_230611_longer_payload.rs b/migration/src/m20230618_230611_longer_payload.rs index 09f5e92c..82bf2c61 100644 --- a/migration/src/m20230618_230611_longer_payload.rs +++ b/migration/src/m20230618_230611_longer_payload.rs @@ -10,8 +10,8 @@ impl MigrationTrait for Migration { .alter_table( Table::alter() .table(AdminTrail::Table) - .modify_column(ColumnDef::new(Post::Endpoint).text().not_null()) - .modify_column(ColumnDef::new(Post::Payload).text().not_null()) + .modify_column(ColumnDef::new(AdminTrail::Endpoint).text().not_null()) + .modify_column(ColumnDef::new(AdminTrail::Payload).text().not_null()) .to_owned(), ) .await @@ -21,9 +21,9 @@ impl MigrationTrait for Migration { manager .alter_table( Table::alter() - .table(Post::AdminTrail) - .modify_column(ColumnDef::new(Post::Endpoint).string().not_null()) - .modify_column(ColumnDef::new(Post::Payload).string().not_null()) + .table(AdminTrail::Table) + .modify_column(ColumnDef::new(AdminTrail::Endpoint).string().not_null()) + .modify_column(ColumnDef::new(AdminTrail::Payload).string().not_null()) .to_owned(), ) .await