From: Rafael Kitover Date: Tue, 1 Mar 2011 04:02:15 +0000 (-0500) Subject: create file_columns table when DBICTEST_SQLT_DEPLOY env var is not set X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b40ac1a052d2d0fe6b9dd0219bb77bb469d1cc2;p=dbsrgits%2FDBIx-Class-Historic.git create file_columns table when DBICTEST_SQLT_DEPLOY env var is not set Breakage introduced in 123df52 --- diff --git a/t/inflate/file_column.t b/t/inflate/file_column.t index 24407e2..24588c0 100644 --- a/t/inflate/file_column.t +++ b/t/inflate/file_column.t @@ -42,6 +42,15 @@ my $schema = DBICTest->init_schema; plan tests => 10; +if (not $ENV{DBICTEST_SQLT_DEPLOY}) { + $schema->storage->dbh->do(<<'EOF'); + CREATE TABLE file_columns ( + id INTEGER PRIMARY KEY, + file VARCHAR(255) + ) +EOF +} + my $rs = $schema->resultset('FileColumn'); my $source_file = file(__FILE__); my $fname = $source_file->basename;