Fix DB relations (even if they are not used)
authorVincent Tondellier <tonton@team1664.org>
Sat, 09 May 2015 23:28:45 +0200
changeset 69 5794f095a709
parent 68 c810480b2c37
child 71 61fa9d626914
Fix DB relations (even if they are not used)
lib/CrashTest/Storage/Sql/Schema/Result/CrashUser.pm
lib/CrashTest/Storage/Sql/Schema/Result/Product.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;
--- 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;
-