2018_04_26_150853_import_jamals_questions.php 953 Bytes
Newer Older
Jack Stupple's avatar
Jack Stupple committed
1
<?php
Jack Stupple's avatar
Jack Stupple committed
2
include_once 'CharacterMigration.php';
Jack Stupple's avatar
Jack Stupple committed
3 4 5 6

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;

Jack Stupple's avatar
Jack Stupple committed
7
class ImportJamalsQuestions extends CharacterMigration
Jack Stupple's avatar
Jack Stupple committed
8 9
{
    protected $created_at;
Jack Stupple's avatar
Jack Stupple committed
10 11
    protected $character;
    protected $language;
Jack Stupple's avatar
Jack Stupple committed
12

13 14 15 16
    protected $base_modifiers = '/resources/data/jamal/base-modifiers.json';
    protected $questions = '/resources/data/jamal/questions.json';
    protected $season_roundups = '/resources/data/jamal/season-roundups.json';
    protected $profile_pictures = '/resources/data/jamal/profile-pictures.json';
Jack Stupple's avatar
Jack Stupple committed
17 18 19 20 21 22 23 24

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
25

Jack Stupple's avatar
Jack Stupple committed
26
        $this->created_at = date('Y-m-d H:i:s');
Jack Stupple's avatar
Jack Stupple committed
27 28 29

        $this->character = new \App\Character();
        $this->character->name = 'Jamal';
30
//        $this->character->enabled = $this->created_at;
Jack Stupple's avatar
Jack Stupple committed
31 32
        $this->character->save();

33
        return;
34
        $this->import();
Jack Stupple's avatar
Jack Stupple committed
35 36
    }
}