added migrations for mime_types
This commit is contained in:
parent
7641c1dfdf
commit
4d22498e2d
4 changed files with 102 additions and 90 deletions
|
@ -23,7 +23,7 @@ class DatabaseSeeder extends Seeder
|
|||
|
||||
// $this->call('CategoryTableSeeder');
|
||||
// $this->call('BookTableSeeder');
|
||||
// $this->call('PeriodeTableSeeder');
|
||||
$this->call('MimetypeTableSeeder');
|
||||
$this->call('AccountsTableSeeder');
|
||||
$this->call('RolesTableSeeder');
|
||||
$this->call('LicencesTableSeeder');
|
||||
|
@ -33,67 +33,6 @@ class DatabaseSeeder extends Seeder
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
class PeriodeTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
// DB::table('users')->delete();
|
||||
|
||||
// User::create([
|
||||
// 'name' => str_random(10),
|
||||
// 'email' => 'foo@gmail.com',
|
||||
// 'password' => bcrypt('secret')
|
||||
// ]);
|
||||
DB::table('periodes')->insert([
|
||||
'id' => '1',
|
||||
'days' => '100',
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
class CategoryTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
// DB::table('users')->delete();
|
||||
|
||||
// User::create([
|
||||
// 'name' => str_random(10),
|
||||
// 'email' => 'foo@gmail.com',
|
||||
// 'password' => bcrypt('secret')
|
||||
// ]);
|
||||
DB::table('categories')->insert([
|
||||
[
|
||||
// 'id' => '1',
|
||||
'category' => 'Sains',
|
||||
'created_at' => '2015-06-09 00:17:51',
|
||||
'updated_at' => '2015-06-09 01:01:36',
|
||||
],
|
||||
[
|
||||
// 'id' => '2',
|
||||
'category' => 'Computer',
|
||||
'created_at' => '2015-06-09 01:07:41',
|
||||
'updated_at' => '2015-06-09 01:07:41',
|
||||
],
|
||||
[
|
||||
// 'id' => '3',
|
||||
'category' => 'Life Lesson',
|
||||
'created_at' => '2015-06-09 01:07:50',
|
||||
'updated_at' => '2015-06-09 01:07:50',
|
||||
],
|
||||
[
|
||||
// 'id' => '4',
|
||||
'category' => 'Fairy Tail',
|
||||
'created_at' => '2015-06-09 01:07:50',
|
||||
'updated_at' => '2015-06-09 01:07:50',
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
class CollectionTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
|
@ -148,30 +87,4 @@ class CollectionTableSeeder extends Seeder
|
|||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
class DocumentTableSeeder extends Seeder
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
DB::table('documents')->insert([
|
||||
[
|
||||
'id' => '0',
|
||||
],
|
||||
[
|
||||
'id' => '1',
|
||||
],
|
||||
]);
|
||||
|
||||
DB::table('link_documents_collections')->insert([
|
||||
[
|
||||
'document_id' => '0',
|
||||
'collection_id' => '1',
|
||||
],
|
||||
[
|
||||
'document_id' => '1',
|
||||
'collection_id' => '1',
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue