From: Peter Rabbitson Date: Sun, 12 Oct 2008 21:56:50 +0000 (+0000) Subject: Fix omission in pg test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=85df19d76ce9a20b1161f735beda67c90b5d9cd9;p=dbsrgits%2FDBIx-Class-Historic.git Fix omission in pg test --- diff --git a/t/72pg.t b/t/72pg.t index a3336bf..b4606e3 100644 --- a/t/72pg.t +++ b/t/72pg.t @@ -50,7 +50,7 @@ $schema->source("SequenceTest")->name("testschema.sequence_test"); { local $SIG{__WARN__} = sub {}; $dbh->do("CREATE SCHEMA testschema;"); - $dbh->do("CREATE TABLE testschema.artist (artistid serial PRIMARY KEY, name VARCHAR(100), charfield CHAR(10));"); + $dbh->do("CREATE TABLE testschema.artist (artistid serial PRIMARY KEY, name VARCHAR(100), rank INTEGER NOT NULL DEFAULT '13', charfield CHAR(10));"); $dbh->do("CREATE TABLE testschema.sequence_test (pkid1 integer, pkid2 integer, nonpkid integer, name VARCHAR(100), CONSTRAINT pk PRIMARY KEY(pkid1, pkid2));"); $dbh->do("CREATE SEQUENCE pkid1_seq START 1 MAXVALUE 999999 MINVALUE 0"); $dbh->do("CREATE SEQUENCE pkid2_seq START 10 MAXVALUE 999999 MINVALUE 0"); @@ -81,6 +81,13 @@ my $test_type_info = { 'size' => 100, 'default_value' => undef, }, + 'rank' => { + 'data_type' => 'integer', + 'is_nullable' => 0, + 'size' => 4, + 'default_value' => 13, + + }, 'charfield' => { 'data_type' => 'character', 'is_nullable' => 1,