From: Frank Brehm Date: Fri, 10 Aug 2007 11:36:25 +0000 (+0000) Subject: Bugfixing X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=301deafb3f481f9b0fb92c967fd42d55c1af3211;p=cookbook.git Bugfixing git-svn-id: http://svn.brehm-online.com/svn/cookbook/trunk@20 191103c4-1d37-0410-b3e5-d8c2315c0aac --- diff --git a/lib/CookBook/Db/RecipeIngredients.pm b/lib/CookBook/Db/RecipeIngredients.pm index 4a26dfc..b4d65df 100644 --- a/lib/CookBook/Db/RecipeIngredients.pm +++ b/lib/CookBook/Db/RecipeIngredients.pm @@ -55,10 +55,10 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("recipe_ingredient_id"); -__PACKAGE__->belongs_to( 'recipe' => 'CookBook::Db::Recipes', 'recipe_id', ); -__PACKAGE__->belongs_to( 'ingredient' => 'CookBook::Db::Ingredients', 'ingredient_id', ); -__PACKAGE__->belongs_to( 'ingredient_group' => 'CookBook::Db::IngredientGroupss', 'ingredient_group_id', ); -__PACKAGE__->belongs_to( 'unit' => 'CookBook::Db::Units', 'unit_id', ); +__PACKAGE__->belongs_to( 'recipe' => 'CookBook::Db::Recipes', 'recipe_id', ); +__PACKAGE__->belongs_to( 'ingredient' => 'CookBook::Db::Ingredients', 'ingredient_id', ); +__PACKAGE__->belongs_to( 'ingredient_group' => 'CookBook::Db::IngredientGroups', 'ingredient_group_id', ); +__PACKAGE__->belongs_to( 'unit' => 'CookBook::Db::Units', 'unit_id', ); #---------------------------------------------------------------------------------------- diff --git a/lib/CookBook/Db/UnitTypes.pm b/lib/CookBook/Db/UnitTypes.pm index fff80a4..6b1e653 100644 --- a/lib/CookBook/Db/UnitTypes.pm +++ b/lib/CookBook/Db/UnitTypes.pm @@ -43,7 +43,7 @@ __PACKAGE__->add_columns( "date_created" => { 'data_type' => "DATETIME", 'default_value' => "", 'is_nullable' => 0, 'size' => 19 }, ); -__PACKAGE__->set_primary_key("yield_type_id"); +__PACKAGE__->set_primary_key("unit_type_id"); __PACKAGE__->add_unique_constraint( "unit_type_name", ["unit_type_name"] ); #----------------------------------------------------------------------------------------