Revision history for Perl extension DBIx::DBSchema.
+0.23 Mon Feb 16 17:35:54 PST 2004
+ - Update Pg dependancy to 1.32
+ - Update the simple load test so it skips DBIx::DBSchema::DBD::Pg if
+ DBD::Pg 1.32 is not installed.
+
0.22 Thu Oct 23 15:18:21 PDT 2003
- Pg reverse-engineering fix: varchar with no limit
- Pg needs (unreleased) DBD::Pg 1.30 (or deb 1.22-2... interesting)
#@ISA = qw(Exporter);
@ISA = ();
-$VERSION = "0.22";
+$VERSION = "0.23";
=head1 NAME
use strict;
use vars qw($VERSION @ISA %typemap);
+use DBD::Pg 1.32;
use DBIx::DBSchema::DBD;
-$VERSION = '0.07';
+$VERSION = '0.08';
@ISA = qw(DBIx::DBSchema::DBD);
-use DBD::Pg;
-my $pg_required_version =
- ( -e '/etc/debian_version' && $INC{'DBD/Pg.pm'} !~ m(^/usr/local/) )
- ? '1.22'
- : '1.30';
-eval "use DBD::Pg $pg_required_version;";
-die $@ if length($@);
-
%typemap = (
'BLOB' => 'BYTEA',
'LONG VARBINARY' => 'BYTEA',
TODO
Makefile.PL
DBSchema.pm
-test.pl
+t/load.t
+t/load-mysql.t
+t/load-pg.t
DBSchema/Table.pm
DBSchema/ColGroup.pm
DBSchema/ColGroup/Index.pm
--- /dev/null
+BEGIN { $| = 1; print "1..1\n"; }
+END {print "not ok 1\n" unless $loaded;}
+use DBIx::DBSchema::DBD::mysql;
+$loaded = 1;
+print "ok 1\n";
--- /dev/null
+print "1..1\n";
+eval "use DBD::Pg 1.32";
+if ( length($@) ) {
+ print "ok 1 # Skipped: DBD::Pg 1.32 required for Pg";
+} else {
+ eval "use DBIx::DBSchema::DBD::Pg;";
+ if ( length($@) ) {
+ print "not ok 1\n";
+ } else {
+ print "ok 1\n";
+ }
+}
--- /dev/null
+BEGIN { $| = 1; print "1..1\n"; }
+END {print "not ok 1\n" unless $loaded;}
+use DBIx::DBSchema;
+$loaded = 1;
+print "ok 1\n";
+++ /dev/null
-# Before `make install' is performed this script should be runnable with
-# `make test'. After `make install' it should work as `perl test.pl'
-
-######################### We start with some black magic to print on failure.
-
-# Change 1..1 below to 1..last_test_to_print .
-# (It may become useful if the test is moved to ./t subdirectory.)
-
-BEGIN { $| = 1; print "1..1\n"; }
-END {print "not ok 1\n" unless $loaded;}
-use DBIx::DBSchema;
-use DBIx::DBSchema::DBD::Pg;
-use DBIx::DBSchema::DBD::mysql;
-$loaded = 1;
-print "ok 1\n";
-
-######################### End of black magic.
-
-# Insert your test code below (better if it prints "ok 13"
-# (correspondingly "not ok 13") depending on the success of chunk 13
-# of the test code):
-