2015-11-24 04:07:24 +01:00
|
|
|
<?php
|
2015-11-24 04:26:27 +01:00
|
|
|
|
2015-11-24 04:07:24 +01:00
|
|
|
/**
|
|
|
|
* Pony.fm - A community for pony fan music.
|
2021-02-14 03:39:15 +01:00
|
|
|
* Copyright (C) 2015 Feld0.
|
2015-11-24 04:07:24 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
2021-02-14 03:39:15 +01:00
|
|
|
class GenreTableSeeder extends Seeder
|
|
|
|
{
|
2015-11-24 04:07:24 +01:00
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
// This table only needs to be filled once.
|
|
|
|
if (DB::table('genres')->count() === 0) {
|
|
|
|
DB::table('genres')->insert(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'name' => 'Acoustic',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'acoustic',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Adult Contemporary',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'adult-contemporary',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Ambient',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'ambient',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Chiptune',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'chiptune',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Country',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'country',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Darkwave',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'darkwave',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Disco / Funk',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'disco-funk',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Downtempo',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'downtempo',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Drum & Bass',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'drum-bass',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Dubstep',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'dubstep',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'EDM',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'edm',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Electro',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'electro',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Eurobeat',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'eurobeat',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Experimental',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'experimental',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Hardcore',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'hardcore',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Hardstyle',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'hardstyle',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Hip-Hop',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'hip-hop',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'House',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'house',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'IDM',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'idm',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Jazz',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'jazz',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Mashup',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'mashup',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Metal',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'metal',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Orchestral',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'orchestral',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Other',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'other',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Pop',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'pop',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Progressive',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'progressive',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Rock',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'rock',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Ska / Punk',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'ska-punk',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Synthpop',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'synthpop',
|
2015-11-24 04:07:24 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
[
|
|
|
|
'name' => 'Trance',
|
2021-02-14 03:39:15 +01:00
|
|
|
'slug' => 'trance',
|
|
|
|
],
|
2015-11-24 04:07:24 +01:00
|
|
|
]);
|
2021-02-14 03:39:15 +01:00
|
|
|
}
|
2015-11-24 04:07:24 +01:00
|
|
|
}
|
|
|
|
}
|