Commit f6c4d2c9 authored by Antoine Le Gonidec's avatar Antoine Le Gonidec

Database update — Add base dependencies (always required for a given target system)

parent 033c7eb3
......@@ -9,6 +9,7 @@ class DatabaseSeeder extends Seeder {
* @return void
*/
public function run() {
$this->call('DependenciesTableSeeder');
$this->call('GamesTableSeeder');
$this->call('ScriptsTableSeeder');
$this->call('ArchivesTableSeeder');
......
<?php
use Illuminate\Database\Seeder;
class DependenciesTableSeeder extends Seeder {
private $table_name = 'dependencies';
private $dependencies = [
[
'system' => 'debian',
'package' => 'dpkg',
'base' => true,
],
[
'system' => 'debian',
'package' => 'fakeroot',
'base' => true,
],
[
'system' => 'gentoo',
'package' => 'sys-apps/fakeroot-ng',
'base' => true,
],
[
'system' => 'gentoo',
'package' => 'sys-apps/portage',
'base' => true,
],
];
/**
* Run the database seeds.
*
* @return void
*/
public function run() {
$table = app('db')->table($this->table_name);
$table->insert($this->dependencies);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment