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

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

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

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

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $this->created_at = date('Y-m-d H:i:s');

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

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