mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-15 19:22:08 -06:00
Fixed some database migration stuff.
This commit is contained in:
parent
493c71b89e
commit
fe30850568
@ -9,4 +9,14 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
*/
|
*/
|
||||||
class Component extends Model
|
class Component extends Model
|
||||||
{
|
{
|
||||||
|
protected $fillable = ['user_id', 'name', 'class'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getDates()
|
||||||
|
{
|
||||||
|
return ['created_at', 'updated_at', 'deleted_at'];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -23,14 +23,14 @@ class DatabaseSeeder extends Seeder
|
|||||||
$this->call('PermissionSeeder');
|
$this->call('PermissionSeeder');
|
||||||
|
|
||||||
// set up basic test data (as little as possible):
|
// set up basic test data (as little as possible):
|
||||||
if (App::environment() == 'testing') {
|
if (App::environment() == 'testing' && gethostname() != 'lightning') {
|
||||||
$this->call('TestDataSeeder');
|
$this->call('TestDataSeeder');
|
||||||
}
|
}
|
||||||
|
|
||||||
// this one is reserved for more extensive testing.
|
// this one is reserved for more extensive testing.
|
||||||
//if (App::environment() == 'testing' || App::environment() == 'homestead' || gethostname() == 'lightning') {
|
if (App::environment() == 'testing' || gethostname() == 'lightning') {
|
||||||
//$this->call('VisualTestDataSeeder');
|
$this->call('VisualTestDataSeeder');
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user