From: Marc Mims Date: Fri, 30 Jan 2009 13:54:42 +0000 (+0000) Subject: Bring test current with DBICTest schema. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a466dec95059504df0fbb374b31e1e50e5ee8f78;p=dbsrgits%2FDBIx-Class-Historic.git Bring test current with DBICTest schema. --- diff --git a/t/746db2_400.t b/t/746db2_400.t index e784189..21c72df 100644 --- a/t/746db2_400.t +++ b/t/746db2_400.t @@ -23,7 +23,13 @@ my $dbh = $schema->storage->dbh; eval { $dbh->do("DROP TABLE artist") }; -$dbh->do("CREATE TABLE artist (artistid INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1), name VARCHAR(255), charfield CHAR(10))"); +$dbh->do(<<''); +CREATE TABLE artist ( + artistid INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1), + name VARCHAR(255), + rank INTEGER default 13 not null, + charfield CHAR(10) +) # Just to test loading, already in Core $schema->class('Artist')->load_components('PK::Auto'); @@ -58,6 +64,11 @@ my $test_type_info = { 'is_nullable' => 1, 'size' => 255 }, + 'rank' => { + 'data_type' => 'INTEGER', + 'is_nullable' => 0, + 'size' => 10, + }, 'charfield' => { 'data_type' => 'CHAR', 'is_nullable' => 1,