Completed
Push — master ( 2d0bf2...b0eeab )
by Renato
20:37 queued 18:12
created

ConfigPrioritiesTableSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 47
Code Lines 39

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 47
rs 9.0303
c 0
b 0
f 0
cc 1
eloc 39
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Seeder;
4
5
class ConfigPrioritiesTableSeeder extends Seeder
6
{
7
    /**
8
     * Auto generated seed file.
9
     */
10
    public function run()
11
    {
12
        \DB::table('config_priorities')->delete();
13
14
        \DB::table('config_priorities')->insert(array(
15
            0 => array(
16
                'id' => 1,
17
                'slug' => 'must-have',
18
                'type' => 'user_story',
19
                'title' => 'Must have',
20
                'description' => 'features that must be included before the product can be launched. It is good to have clarity on this before a project begins, as this is the minimum scope for the product to be useful.',
21
                'color' => 'ED1B35',
22
                'position' => 0,
23
                'enabled' => 1,
24
            ),
25
            1 => array(
26
                'id' => 2,
27
                'slug' => 'should-have',
28
                'type' => 'user_story',
29
                'title' => 'Should have',
30
                'description' => 'features that are not critical to launch, but are considered to be important and of a high value to the user.',
31
                'color' => 'F58631',
32
                'position' => 1,
33
                'enabled' => 1,
34
            ),
35
            2 => array(
36
                'id' => 3,
37
                'slug' => 'could-have',
38
                'type' => 'user_story',
39
                'title' => 'Could have',
40
                'description' => 'features that are nice to have and could potentially be included without incurring too much effort or cost. These will be the first features to be removed from scope if the project’s timescales are later at risk.',
41
                'color' => '8E479C',
42
                'position' => 2,
43
                'enabled' => 1,
44
            ),
45
            3 => array(
46
                'id' => 4,
47
                'slug' => 'wont-have',
48
                'type' => 'user_story',
49
                'title' => 'Won’t have',
50
                'description' => 'features that have been reqeusted but are explicitly excluded from scope for the planned duration, and may be included in a future phase of development.',
51
                'color' => 'A1A2A3',
52
                'position' => 3,
53
                'enabled' => 1,
54
            ),
55
        ));
56
    }
57
}
58