-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds CpanStats Result class for table 'cpanstats'
Important: Most of the data types are merely guessed, based on the gist containing the results of a select query Doug kindly provided me.
- Loading branch information
1 parent
3cc978a
commit 550d2bf
Showing
1 changed file
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
use utf8; | ||
package CpanStats::Result::CpanStats; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
__PACKAGE__->table('cpanstats'); | ||
|
||
__PACKAGE__->add_columns( | ||
'id', { | ||
data_type => 'int', | ||
extra => { unsigned => 1 }, | ||
is_auto_increment => 1, | ||
is_nullable => 0, | ||
}, | ||
'guid', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 36, | ||
}, | ||
'state', { | ||
data_type => 'enum', | ||
extra => { list => ['pass', 'fail', 'unknown', 'na'] }, | ||
is_nullable => 0, | ||
}, | ||
# masked type maybe? or a FK? | ||
'postdate', { | ||
data_type => 'mediumint', | ||
extra => { unsigned => 1 }, | ||
is_nullable => 0, | ||
}, | ||
'tester', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 100, | ||
}, | ||
'dist', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 100, | ||
}, | ||
'version', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 20, | ||
}, | ||
'platform', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 20, | ||
}, | ||
'perl', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 10, | ||
}, | ||
'osname', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 20, | ||
}, | ||
'osvers', { | ||
data_type => 'varchar', | ||
is_nullable => 0, | ||
size => 20, | ||
}, | ||
'fulldate', { | ||
data_type => 'char', | ||
is_nullable => 0, | ||
size => 8, | ||
}, | ||
# FK? | ||
'type', { | ||
data_type => 'tinyint', | ||
extra => { unsigned => 1 }, | ||
is_nullable => 0, | ||
}, | ||
'uploadid', { | ||
data_type => 'int', | ||
extra => { unsigned => 1 }, | ||
is_nullable => 0, | ||
}, | ||
); | ||
|
||
__PACKAGE__->set_primary_key('id'); | ||
|
||
1; |