Fix dumpmore tests so they pass with a correctly-working SQLite
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 10sqlite_common.t
index 19982e7..523bd0c 100644 (file)
@@ -15,6 +15,7 @@ my $tester = dbixcsl_common_tests->new(
     connect_info_opts => {
         on_connect_do => 'PRAGMA foreign_keys = ON',
     },
+    loader_options  => { preserve_case => 1 },
     data_types  => {
         # SQLite ignores data types aside from INTEGER pks.
         # We just test that they roundtrip sanely.
@@ -23,6 +24,10 @@ my $tester = dbixcsl_common_tests->new(
         'smallint'    => { data_type => 'smallint' },
         'int'         => { data_type => 'int' },
         'integer'     => { data_type => 'integer' },
+
+        # test that type name is lowercased
+        'INTEGER'     => { data_type => 'integer' },
+
         'bigint'      => { data_type => 'bigint' },
         'float'       => { data_type => 'float' },
         'double precision' =>
@@ -46,7 +51,7 @@ my $tester = dbixcsl_common_tests->new(
         # Date and Time Types
         'date'        => { data_type => 'date' },
         'timestamp DEFAULT CURRENT_TIMESTAMP'
-                      => { data_type => 'timestamp', default_value => \'CURRENT_TIMESTAMP' },
+                      => { data_type => 'timestamp', default_value => \'current_timestamp' },
         'time'        => { data_type => 'time' },
 
         # String Types