|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
use Illuminate\Support\Facades\Schema; |
|
4
|
|
|
use Illuminate\Database\Schema\Blueprint; |
|
5
|
|
|
use Illuminate\Database\Migrations\Migration; |
|
6
|
|
|
|
|
7
|
|
|
class PopulateAssessmentTypes extends Migration |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* Run the migrations. |
|
11
|
|
|
* |
|
12
|
|
|
* |
|
13
|
|
|
* |
|
14
|
|
|
* @return void |
|
15
|
|
|
*/ |
|
16
|
|
|
public function up() |
|
17
|
|
|
{ |
|
18
|
|
|
DB::table('assessment_types')->insert([ |
|
19
|
|
|
['id' => 1, 'key' => 'narrative_assessment'], |
|
20
|
|
|
['id' => 2, 'key' => 'take_home_exam_scenario_behaviour'], |
|
21
|
|
|
['id' => 3, 'key' => 'take_home_exam_problem_analysis'], |
|
22
|
|
|
['id' => 4, 'key' => 'take_home_exam_technical_skills'], |
|
23
|
|
|
['id' => 5, 'key' => 'take_home_exam_research'], |
|
24
|
|
|
['id' => 6, 'key' => 'take_home_exam_self_assessment'], |
|
25
|
|
|
['id' => 7, 'key' => 'on_site_exam_technical_skills'], |
|
26
|
|
|
['id' => 8, 'key' => 'on_site_exam_self_assessment'], |
|
27
|
|
|
['id' => 9, 'key' => 'online_exam_technical_skills'], |
|
28
|
|
|
['id' => 10, 'key' => 'online_exam_psychometric'], |
|
29
|
|
|
['id' => 11, 'key' => 'online_exam_cognitive_abilities'], |
|
30
|
|
|
|
|
31
|
|
|
['id' => 12, 'key' => 'interview_question_technical_skills'], |
|
32
|
|
|
['id' => 13, 'key' => 'interview_question_scenario_behaviour'], |
|
33
|
|
|
['id' => 14, 'key' => 'interview_question_problem_analysis'], |
|
34
|
|
|
['id' => 15, 'key' => 'interview_question_past_experience'], |
|
35
|
|
|
['id' => 16, 'key' => 'interview_question_self_assessment'], |
|
36
|
|
|
['id' => 17, 'key' => 'interview_overall'], |
|
37
|
|
|
['id' => 18, 'key' => 'informal_phone_conversation'], |
|
38
|
|
|
|
|
39
|
|
|
['id' => 19, 'key' => 'portfolio_review_online'], |
|
40
|
|
|
['id' => 20, 'key' => 'portfolio_review_with_candidate'], |
|
41
|
|
|
|
|
42
|
|
|
['id' => 21, 'key' => 'group_test_problem'], |
|
43
|
|
|
['id' => 22, 'key' => 'group_test_behavioural'], |
|
44
|
|
|
|
|
45
|
|
|
['id' => 23, 'key' => 'serious_games_behavioural'], |
|
46
|
|
|
['id' => 24, 'key' => 'serious_games_ability_to_learn'], |
|
47
|
|
|
['id' => 25, 'key' => 'serious_games_analytical'], |
|
48
|
|
|
|
|
49
|
|
|
['id' => 26, 'key' => 'reference_check_conversation'], |
|
50
|
|
|
['id' => 27, 'key' => 'reference_check_micro'] |
|
51
|
|
|
]); |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* Reverse the migrations. |
|
56
|
|
|
* |
|
57
|
|
|
* @return void |
|
58
|
|
|
*/ |
|
59
|
|
|
public function down() |
|
60
|
|
|
{ |
|
61
|
|
|
DB::table('assessment_types')->whereIn('id', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, |
|
62
|
|
|
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, |
|
63
|
|
|
21, 22, 23, 24, 25, 26, 27])->delete(); |
|
64
|
|
|
} |
|
65
|
|
|
} |
|
66
|
|
|
|