Config for test database.

This commit is contained in:
James Cole 2015-03-18 22:16:00 +01:00
parent 0b16765f37
commit 3c4e7158a1
4 changed files with 5 additions and 3 deletions

View File

@ -15,6 +15,7 @@ install:
- composer install
- php artisan env
- mv -v .env.testing .env
- php artisan migrate --seed
script:
- phpunit --debug

View File

@ -48,7 +48,7 @@ return [
'sqlite' => [
'driver' => 'sqlite',
'database' => realpath(__DIR__ . '/../tests/_data/db.sqlite'),
'database' => realpath(__DIR__ . '/../tests/database/db.sqlite'),
'prefix' => '',
],

View File

@ -18,14 +18,14 @@ class ChangesForV332 extends Migration {
Schema::table(
'accounts', function (Blueprint $table) {
$table->boolean('encrypted');
$table->boolean('encrypted')->default(0);
}
);
Schema::table(
'reminders', function (Blueprint $table) {
$table->text('metadata');
$table->text('metadata')->nullable();
}
);

1
tests/database/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sqlite