summaryrefslogtreecommitdiff
path: root/lib/CPAN
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-04-06 14:20:57 +0200
committerfranck cuny <franck@lumberjaph.net>2009-04-06 14:20:57 +0200
commit8e11a2cd920b4b8e0657bd9ab2b49fc78dde6dfa (patch)
tree0c605ce0b9c7903f39e4a6380f133489a0873c23 /lib/CPAN
parentadd type and id in edge (diff)
parentfix date (diff)
downloadcpan-graph-8e11a2cd920b4b8e0657bd9ab2b49fc78dde6dfa.tar.gz
merge done
Diffstat (limited to 'lib/CPAN')
-rw-r--r--lib/CPAN/cpants.pm2
-rw-r--r--lib/CPAN/mapcpan.pm53
2 files changed, 12 insertions, 43 deletions
diff --git a/lib/CPAN/cpants.pm b/lib/CPAN/cpants.pm
index 686c834..e64dc29 100644
--- a/lib/CPAN/cpants.pm
+++ b/lib/CPAN/cpants.pm
@@ -744,7 +744,7 @@ use base 'DBIx::Class';
use strict;
use warnings;
-__PACKAGE__->load_components( qw/ Core/ );
+__PACKAGE__->load_components( qw/ Core / );
__PACKAGE__->table( 'dist' );
__PACKAGE__->add_columns(
diff --git a/lib/CPAN/mapcpan.pm b/lib/CPAN/mapcpan.pm
index 7dcd13e..f93f8c8 100644
--- a/lib/CPAN/mapcpan.pm
+++ b/lib/CPAN/mapcpan.pm
@@ -42,7 +42,7 @@ use base 'DBIx::Class';
use strict;
use warnings;
-__PACKAGE__->load_components( qw/ Core/ );
+__PACKAGE__->load_components( qw/InflateColumn::DateTime Core/ );
__PACKAGE__->table( 'packages' );
__PACKAGE__->add_columns(
@@ -64,6 +64,15 @@ __PACKAGE__->add_columns(
'is_nullable' => 1,
'size' => 0
},
+ 'version' => {
+ 'data_type' => 'text',
+ 'is_auto_increment' => 0,
+ 'default_value' => undef,
+ 'is_foreign_key' => 0,
+ 'name' => 'version',
+ 'is_nullable' => 1,
+ 'size' => 0
+ },
'tests_success' => {
'data_type' => 'integer',
'is_auto_increment' => 0,
@@ -83,7 +92,7 @@ __PACKAGE__->add_columns(
'size' => 0
},
'released' => {
- 'data_type' => 'date',
+ 'data_type' => 'datetime',
'is_auto_increment' => 0,
'default_value' => undef,
'is_foreign_key' => 0,
@@ -94,45 +103,6 @@ __PACKAGE__->add_columns(
);
__PACKAGE__->set_primary_key('id');
-package CPAN::cpanmap::modules;
-use base 'DBIx::Class';
-use strict;
-use warnings;
-
-__PACKAGE__->load_components( qw/ Core/ );
-__PACKAGE__->table( 'modules' );
-
-__PACKAGE__->add_columns(
- 'id' => {
- 'data_type' => 'integer',
- 'is_auto_increment' => 0,
- 'default_value' => undef,
- 'is_foreign_key' => 0,
- 'name' => 'id',
- 'is_nullable' => 0,
- 'size' => 0
- },
- 'module' => {
- 'data_type' => 'text',
- 'is_auto_increment' => 0,
- 'default_value' => undef,
- 'is_foreign_key' => 0,
- 'name' => 'module',
- 'is_nullable' => 1,
- 'size' => 0
- },
- 'in_dist' => {
- 'data_type' => 'integer',
- 'is_auto_increment' => 0,
- 'default_value' => undef,
- 'is_foreign_key' => 0,
- 'name' => 'in_dist',
- 'is_nullable' => 1,
- 'size' => 0
- },
-);
-__PACKAGE__->set_primary_key('id');
-
package CPAN::cpanmap;
use base 'DBIx::Class::Schema';
use strict;
@@ -140,6 +110,5 @@ use warnings;
__PACKAGE__->register_class( 'edges', 'CPAN::cpanmap::edges' );
__PACKAGE__->register_class( 'packages', 'CPAN::cpanmap::packages' );
-__PACKAGE__->register_class( 'modules', 'CPAN::cpanmap::modules' );
1;