summaryrefslogtreecommitdiff
path: root/lib/githubexplorer/Schema/Result/RepoLang.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-02-09 13:18:50 +0100
committerfranck cuny <franck@lumberjaph.net>2010-02-09 13:18:50 +0100
commitbb8b82e0c7e2fefca3f66e930db59b57e51312e4 (patch)
tree2de6a2613fbc2f2c57fdcf0c029c4bba6e81de42 /lib/githubexplorer/Schema/Result/RepoLang.pm
parentfetch repo (diff)
downloadgithub-explorer-bb8b82e0c7e2fefca3f66e930db59b57e51312e4.tar.gz
add new tables
Diffstat (limited to 'lib/githubexplorer/Schema/Result/RepoLang.pm')
-rw-r--r--lib/githubexplorer/Schema/Result/RepoLang.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/githubexplorer/Schema/Result/RepoLang.pm b/lib/githubexplorer/Schema/Result/RepoLang.pm
new file mode 100644
index 0000000..4fce474
--- /dev/null
+++ b/lib/githubexplorer/Schema/Result/RepoLang.pm
@@ -0,0 +1,20 @@
+package githubexplorer::Schema::Result::RepoLang;
+
+use base qw/DBIx::Class/;
+
+__PACKAGE__->load_components(qw/Core/);
+__PACKAGE__->table('repolang');
+
+__PACKAGE__->add_columns(
+ repository => { data_type => 'int', },
+ language => { data_type => 'varchar', },
+ size => { data_type => 'int' },
+);
+
+__PACKAGE__->set_primary_key(qw/repository language/);
+__PACKAGE__->belongs_to( 'repository',
+ 'githubexplorer::Schema::Result::Repositories' );
+__PACKAGE__->belongs_to( 'language',
+ 'githubexplorer::Schema::Result::Language' );
+
+1;