mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Config for test database.
This commit is contained in:
@@ -15,6 +15,7 @@ install:
|
|||||||
- composer install
|
- composer install
|
||||||
- php artisan env
|
- php artisan env
|
||||||
- mv -v .env.testing .env
|
- mv -v .env.testing .env
|
||||||
|
- php artisan migrate --seed
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpunit --debug
|
- phpunit --debug
|
||||||
|
@@ -48,7 +48,7 @@ return [
|
|||||||
|
|
||||||
'sqlite' => [
|
'sqlite' => [
|
||||||
'driver' => 'sqlite',
|
'driver' => 'sqlite',
|
||||||
'database' => realpath(__DIR__ . '/../tests/_data/db.sqlite'),
|
'database' => realpath(__DIR__ . '/../tests/database/db.sqlite'),
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@@ -18,14 +18,14 @@ class ChangesForV332 extends Migration {
|
|||||||
|
|
||||||
Schema::table(
|
Schema::table(
|
||||||
'accounts', function (Blueprint $table) {
|
'accounts', function (Blueprint $table) {
|
||||||
$table->boolean('encrypted');
|
$table->boolean('encrypted')->default(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
Schema::table(
|
Schema::table(
|
||||||
'reminders', function (Blueprint $table) {
|
'reminders', function (Blueprint $table) {
|
||||||
$table->text('metadata');
|
$table->text('metadata')->nullable();
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
1
tests/database/.gitignore
vendored
Normal file
1
tests/database/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.sqlite
|
Reference in New Issue
Block a user