[Bast-commits] r5382 - DBIx-Class/0.08/trunk/t
semifor at dev.catalyst.perl.org
semifor at dev.catalyst.perl.org
Fri Jan 30 13:54:43 GMT 2009
Author: semifor
Date: 2009-01-30 13:54:42 +0000 (Fri, 30 Jan 2009)
New Revision: 5382
Modified:
DBIx-Class/0.08/trunk/t/746db2_400.t
Log:
Bring test current with DBICTest schema.
Modified: DBIx-Class/0.08/trunk/t/746db2_400.t
===================================================================
--- DBIx-Class/0.08/trunk/t/746db2_400.t 2009-01-30 08:09:11 UTC (rev 5381)
+++ DBIx-Class/0.08/trunk/t/746db2_400.t 2009-01-30 13:54:42 UTC (rev 5382)
@@ -23,7 +23,13 @@
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 @@
'is_nullable' => 1,
'size' => 255
},
+ 'rank' => {
+ 'data_type' => 'INTEGER',
+ 'is_nullable' => 0,
+ 'size' => 10,
+ },
'charfield' => {
'data_type' => 'CHAR',
'is_nullable' => 1,
More information about the Bast-commits
mailing list