1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace Database\Seeders;
7
8use Exception;
9use Illuminate\Database\Seeder;
10
11class DatabaseSeeder extends Seeder
12{
13 /**
14 * Run the database seeds.
15 *
16 * @return void
17 */
18 public function run()
19 {
20 try {
21 $this->call(ModelSeeders\GroupSeeder::class);
22
23 // Miscellaneous Data (e.g. counts)
24 $this->call(ModelSeeders\MiscSeeder::class);
25
26 // Countries
27 $this->call(ModelSeeders\CountrySeeder::class);
28
29 // Users, Stats, Ranks
30 $this->call(ModelSeeders\UserSeeder::class);
31
32 // Beatmaps and sets
33 $this->call(ModelSeeders\BeatmapSeeder::class);
34
35 // Events
36 $this->call(ModelSeeders\EventSeeder::class);
37
38 // Scores
39 $this->call(ModelSeeders\ScoreSeeder::class);
40
41 // BanchoStats
42 $this->call(ModelSeeders\BanchoStatsSeeder::class);
43
44 // Forums, topics, posts etc
45 $this->call(ModelSeeders\ForumSeeder::class);
46
47 // Users Profile Data (Favourite maps, First place ranks, Playcounts)
48 $this->call(ModelSeeders\UserProfileSeeder::class);
49
50 // Store Products
51 $this->call(ModelSeeders\ProductSeeder::class);
52
53 // Changelog data (base update streams, builds, changes, build histories)
54 $this->call(ModelSeeders\ChangelogSeeder::class);
55 } catch (Exception $ex) {
56 $this->command->error($ex->getMessage());
57 }
58 }
59}