add ->{original}{default_value} when rewriting to current_timestamp
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 13db2_common.t
index 1619968..6d41caa 100644 (file)
@@ -1,5 +1,5 @@
 use strict;
-use lib qw( . ./t );
+use lib qw(t/lib);
 use dbixcsl_common_tests;
 
 my $dsn      = $ENV{DBICTEST_DB2_DSN} || '';
@@ -12,8 +12,11 @@ my $tester = dbixcsl_common_tests->new(
     dsn            => $dsn,
     user           => $user,
     password       => $password,
-    db_schema      => $user,
-    drop_db_schema => 1,
+    null           => '',
+    data_types => {
+        'timestamp DEFAULT CURRENT TIMESTAMP' => { data_type => 'timestamp', default_value => \'current_timestamp',
+                                                   original => { default_value => \'current timestamp' } },
+    },
 );
 
 if( !$dsn || !$user ) {
@@ -22,3 +25,4 @@ if( !$dsn || !$user ) {
 else {
     $tester->run_tests();
 }
+# vim:et sts=4 sw=4 tw=0: