« auto/share/dist/Perl-Metrics2/timeline/migrate-01.pl
↑ Summary
auto/share/dist/Perl-Metrics2/timeline/migrate-03.pl »
| 1 | use strict; | ||
| 2 | use ORLite::Migrate::Patch; | ||
| 3 | |||
| 4 | # Create the cpan file list | ||
| 5 | do(<<'END_SQL'); | ||
| 6 | create table cpan_file ( | ||
| 7 | id integer not null primary key, | ||
| 8 | dist text not null, | ||
| 9 | file text not null, | ||
| 10 | md5 text not null | ||
| 11 | ) | ||
| 12 | END_SQL | ||
| 13 | |||
| 14 | # Index the hell out of the cpan file list | ||
| 15 | do( 'create index cpan_file__dist on cpan_file ( dist )' ); | ||
| 16 | do( 'create index cpan_file__file on cpan_file ( file )' ); | ||
| 17 | do( 'create index cpan_file__md5 on cpan_file ( md5 )' ); |