auto/share/dist/Perl-Metrics2/timeline/migrate-03.pl untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use ORLite::Migrate::Patch;
3  
4 # We need an extra column with information that doesn't currently exist.
5 # So first, drop the old cpan_file table.
6 do('DROP TABLE cpan_file');
7  
8 # Create the new cpan file list
9 do(<<'END_SQL');
10 create table cpan_file (
11 id integer not null primary key,
12 release text not null,
13 file text not null,
14 md5 text not null,
15 indexable integer not null
16 )
17 END_SQL
18  
19 # Index the hell out of the cpan file list
20 do( 'create index cpan_file__release on cpan_file ( release )' );
21 do( 'create index cpan_file__file on cpan_file ( file )' );
22 do( 'create index cpan_file__md5 on cpan_file ( md5 )' );
23 do( 'create index cpan_file__indexable on cpan_file ( indexable )' );