X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSQLite.pm;h=dbe5ea0e3682c9a126907fc3c599d7920a0524e5;hb=ed213e857791d1cfb0f1a0e32674e81358e19564;hp=02a3c517cf28cf24f7dd542453085b36e115212b;hpb=8795fefb31085d0e9d88c6d6dcf1d7a83e1d417a;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/SQLite.pm b/lib/DBIx/Class/Storage/DBI/SQLite.pm index 02a3c51..dbe5ea0 100644 --- a/lib/DBIx/Class/Storage/DBI/SQLite.pm +++ b/lib/DBIx/Class/Storage/DBI/SQLite.pm @@ -33,7 +33,7 @@ sub backup # my $dbfile = file($dbname); my ($vol, $dbdir, $file) = File::Spec->splitpath($dbname); # my $file = $dbfile->basename(); - $file = strftime("%y%m%d%h%M%s", localtime()) . $file; + $file = strftime("%Y-%m-%d-%H_%M_%S", localtime()) . $file; $file = "B$file" while(-f $file); mkdir($dir) unless -f $dir; @@ -45,11 +45,12 @@ sub backup return $backupfile; } + 1; =head1 NAME -DBIx::Class::PK::Auto::SQLite - Automatic primary key class for SQLite +DBIx::Class::Storage::DBI::SQLite - Automatic primary key class for SQLite =head1 SYNOPSIS