From 6eb98570669f3c8d204e3f5418bca6fe2b6005c0 Mon Sep 17 00:00:00 2001 From: eraden Date: Tue, 13 Jun 2023 21:37:24 +0200 Subject: [PATCH] Finish products --- migration/src/stocks/m20230603_120810_products.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/migration/src/stocks/m20230603_120810_products.rs b/migration/src/stocks/m20230603_120810_products.rs index 662b031..2f275d4 100644 --- a/migration/src/stocks/m20230603_120810_products.rs +++ b/migration/src/stocks/m20230603_120810_products.rs @@ -335,6 +335,7 @@ impl Migration { m.create_table( Table::create() .table(ProductOptions) + .col(auto_uuid_not_null!(Id)) .col(Title.col().string().not_null()) .col(ts_def_now_not_null!(CreatedAt)) .col(ts_def_now_not_null!(UpdatedAt)) @@ -376,7 +377,7 @@ impl Migration { .col(Metadata.col().json_binary()) .to_owned(), ) - .await; + .await?; Ok(()) } @@ -419,7 +420,7 @@ impl Migration { .col(Metadata.col().json_binary()) .to_owned(), ) - .await; + .await?; Ok(()) }