# HG changeset patch # User Vincent Tondellier # Date 1431206925 -7200 # Node ID 5794f095a7099e7cb0b9f39cdacbffe8142d424d # Parent c810480b2c37cc830546bf9c23d0710bc32f09fa Fix DB relations (even if they are not used) diff -r c810480b2c37 -r 5794f095a709 lib/CrashTest/Storage/Sql/Schema/Result/CrashUser.pm --- a/lib/CrashTest/Storage/Sql/Schema/Result/CrashUser.pm Sat May 09 23:24:13 2015 +0200 +++ b/lib/CrashTest/Storage/Sql/Schema/Result/CrashUser.pm Sat May 09 23:28:45 2015 +0200 @@ -47,7 +47,6 @@ is_nullable => 1, }; -#column crash_report_id => { data_type => 'int' }; -#belongs_to crash_report => 'CrashTest::Storage::Sql::Schema::Result::CrashReport', 'crash_report_id'; +has_many crash_report => 'CrashTest::Storage::Sql::Schema::Result::CrashReport', 'crash_user_id'; 1; diff -r c810480b2c37 -r 5794f095a709 lib/CrashTest/Storage/Sql/Schema/Result/Product.pm --- a/lib/CrashTest/Storage/Sql/Schema/Result/Product.pm Sat May 09 23:24:13 2015 +0200 +++ b/lib/CrashTest/Storage/Sql/Schema/Result/Product.pm Sat May 09 23:28:45 2015 +0200 @@ -43,8 +43,6 @@ is_nullable => 16, }; -#column crash_report_id => { data_type => 'int' }; -#belongs_to crash_report => 'CrashTest::Storage::Sql::Schema::Result::CrashReport', 'crash_report_id'; +has_many crash_report => 'CrashTest::Storage::Sql::Schema::Result::CrashReport', 'product_id'; 1; -