Revision history for DBIx-Class-Fixtures
+1.001016
+- Support more Pg types for datetime_relative (added TIME, DATE, INTERVAL,
+ TIMESTAMP)
+- experimental support for PG SERIAL columns and sequences.
+
1.001015
- ::External::File makes the path if its missing
next unless $value
&& $col_info->{_inflate_info}
- && uc($col_info->{data_type}) eq 'DATETIME';
+ && (
+ (uc($col_info->{data_type}) eq 'DATETIME')
+ or (uc($col_info->{data_type}) eq 'DATE')
+ or (uc($col_info->{data_type}) eq 'TIME')
+ or (uc($col_info->{data_type}) eq 'TIMESTAMP')
+ or (uc($col_info->{data_type}) eq 'INTERVAL')
+ );
$ds{$col} = $object->get_inflated_column($col)->subtract_datetime($dt);
}
# check dump is okay
my $dir = dir('t/var/fixtures/artist');
my @children = $dir->children;
-is(scalar(@children), 2, 'right number of artist fixtures created');
+is(scalar(@children), 3, 'right number of artist fixtures created');
# check both artists dumped
foreach my $id (1, 2) {
[ 1, 'Caterwauler McCrae' ],
[ 2, 'Random Boy Band' ],
[ 3, 'We Are Goth' ],
- [ 4, '' ] # Test overridden new will default name to "Test Name" using use_create => 1.
+ [ 4, '' ], # Test overridden new will default name to "Test Name" using use_create => 1.
+ [ 329482389748937, 'Big PK' ],
]);
$schema->populate('CD', [
"rel": "cds",
"quantity": "all"
}]
- }, {
+ },
+
+ {
+ "class": "Artist",
+ "ids": ["329482389748937"],
+ "fetch": [{
+ "rel": "cds",
+ "quantity": "all"
+ }]
+ },
+
+ {
"class": "Artist",
"ids": ["2"],
"fetch": [{