rename restrict by user
[dbsrgits/DBIx-Class-Schema-RestrictWithObject.git] / t / lib / RestrictByUserTest.pm
CommitLineData
772c89c1 1package # hide from PAUSE
2 RestrictByUserTest;
3
4use strict;
5use warnings;
6use RestrictByUserTest::Schema;
7
8sub init_schema {
9 my $self = shift;
10 my $db_file = "t/var/RestrictByUserTest.db";
11
12 unlink($db_file) if -e $db_file;
13 unlink($db_file . "-journal") if -e $db_file . "-journal";
14 mkdir("t/var") unless -d "t/var";
15
16 my $schema = RestrictByUserTest::Schema->connect( "dbi:SQLite:${db_file}");
17 $schema->deploy();
18 return $schema;
19}
20
211;