From: Dagfinn Ilmari Mannsåker Date: Wed, 12 Mar 2008 02:18:13 +0000 (+0000) Subject: Fix the CREATE TABLE statements for DB2 X-Git-Tag: 0.04999_03~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92267f926336c7805a6abe2c0dd3ce749bbc25e8;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Fix the CREATE TABLE statements for DB2 --- diff --git a/t/lib/dbixcsl_common_tests.pm b/t/lib/dbixcsl_common_tests.pm index ec76941..f38f693 100644 --- a/t/lib/dbixcsl_common_tests.pm +++ b/t/lib/dbixcsl_common_tests.pm @@ -912,7 +912,7 @@ sub create { qq{ CREATE TABLE loader_test29 ( id INTEGER NOT NULL PRIMARY KEY, - fk INTEGER UNIQUE, + fk INTEGER NOT NULL UNIQUE, FOREIGN KEY (fk) REFERENCES loader_test27 (id) ) $self->{innodb} }, @@ -930,7 +930,7 @@ sub create { CREATE TABLE loader_test32 ( id INTEGER NOT NULL PRIMARY KEY, rel1 INTEGER NOT NULL, - rel2 INTEGER NULL, + rel2 INTEGER, FOREIGN KEY (rel1) REFERENCES loader_test31(id), FOREIGN KEY (rel2) REFERENCES loader_test31(id) ) $self->{innodb} @@ -950,7 +950,7 @@ sub create { CREATE TABLE loader_test34 ( id INTEGER NOT NULL PRIMARY KEY, rel1 INTEGER NOT NULL, - rel2 INTEGER NULL, + rel2 INTEGER, FOREIGN KEY (id,rel1) REFERENCES loader_test33(id1,id2), FOREIGN KEY (id,rel2) REFERENCES loader_test33(id1,id2) ) $self->{innodb}