From 848a15856b5f9a218ee00aeb2aa087a50ef9d4e4 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Tue, 14 Sep 2021 00:04:26 +0800 Subject: [PATCH] Fix test cases --- sea-orm-codegen/tests/compact/cake_filling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sea-orm-codegen/tests/compact/cake_filling.rs b/sea-orm-codegen/tests/compact/cake_filling.rs index af966c66..ba9ed2ca 100644 --- a/sea-orm-codegen/tests/compact/cake_filling.rs +++ b/sea-orm-codegen/tests/compact/cake_filling.rs @@ -5,9 +5,9 @@ use sea_orm::entity::prelude::*; #[derive(Clone, Debug, PartialEq, DeriveEntityModel)] #[sea_orm(table_name = "_cake_filling_")] pub struct Model { - #[sea_orm(primary_key)] + #[sea_orm(primary_key, auto_increment = false)] pub cake_id: i32, - #[sea_orm(primary_key)] + #[sea_orm(primary_key, auto_increment = false)] pub filling_id: i32, }