Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f232a645c | |||
| ad6e4b2943 | |||
| 85ff347090 | |||
| ac87652534 |
@@ -34,13 +34,13 @@
|
|||||||
## ExamMemberRank
|
## ExamMemberRank
|
||||||
|
|
||||||
- BelongsTo MemberRank
|
- BelongsTo MemberRank
|
||||||
- **TODO** BelongsTo Member (External DB)
|
- BelongsTo Member (External DB, creation in Social Plugin)
|
||||||
- BelongsToMany ExamMemberRankQuestion
|
- BelongsToMany ExamMemberRankQuestion
|
||||||
- BelongsToMany ExamMemberRankAnswers
|
- BelongsToMany ExamMemberRankAnswers
|
||||||
|
|
||||||
## ExamTyperating
|
## ExamTyperating
|
||||||
|
|
||||||
- BelongsTo Typerating
|
- BelongsTo Typerating
|
||||||
- **TODO** BelongsTo Member (External DB)
|
- BelongsTo Member (External DB, creation in Social Plugin)
|
||||||
- BelongsToMany ExamTyperatingQuestion
|
- BelongsToMany ExamTyperatingQuestion
|
||||||
- BelongsToMany ExamTyperatingAnswers
|
- BelongsToMany ExamTyperatingAnswers
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ class ExamMemberRank extends Controller
|
|||||||
|
|
||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class ExamMemberRankAnswer extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class ExamMemberRankQuestion extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ class ExamTyperating extends Controller
|
|||||||
|
|
||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class ExamTyperatingAnswer extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class ExamTyperatingQuestion extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class MemberRank extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class Typerating extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.schooling.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ class ExamMemberRank extends Model
|
|||||||
|
|
||||||
public $belongsTo = [
|
public $belongsTo = [
|
||||||
'member_rank' => 'GermanAirlinesVa\Schooling\Models\MemberRank',
|
'member_rank' => 'GermanAirlinesVa\Schooling\Models\MemberRank',
|
||||||
|
'member' => 'GermanAirlinesVa\Social\Models\Member',
|
||||||
];
|
];
|
||||||
|
|
||||||
public $belongsToMany = [
|
public $belongsToMany = [
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ class ExamTyperating extends Model
|
|||||||
|
|
||||||
public $belongsTo = [
|
public $belongsTo = [
|
||||||
'typerating' => 'GermanAirlinesVa\Schooling\Models\Typerating',
|
'typerating' => 'GermanAirlinesVa\Schooling\Models\Typerating',
|
||||||
|
'member' => 'GermanAirlinesVa\Social\Models\Member',
|
||||||
];
|
];
|
||||||
|
|
||||||
public $belongsToMany = [
|
public $belongsToMany = [
|
||||||
|
|||||||
@@ -2,9 +2,11 @@ columns:
|
|||||||
id:
|
id:
|
||||||
label: id
|
label: id
|
||||||
type: number
|
type: number
|
||||||
member_id:
|
member:
|
||||||
label: member_id
|
label: member
|
||||||
type: number
|
type: text
|
||||||
|
relation: member
|
||||||
|
valueFrom: name
|
||||||
member_rank:
|
member_rank:
|
||||||
label: member_rank
|
label: member_rank
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
@@ -2,9 +2,11 @@ columns:
|
|||||||
id:
|
id:
|
||||||
label: id
|
label: id
|
||||||
type: number
|
type: number
|
||||||
member_id:
|
member:
|
||||||
label: member_id
|
label: member
|
||||||
type: number
|
type: text
|
||||||
|
relation: member
|
||||||
|
valueFrom: name
|
||||||
typerating:
|
typerating:
|
||||||
label: typerating
|
label: typerating
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
+2
-2
@@ -10,7 +10,7 @@ navigation:
|
|||||||
url: /
|
url: /
|
||||||
icon: icon-university
|
icon: icon-university
|
||||||
permissions:
|
permissions:
|
||||||
- schooling
|
- germanairlinesva.schooling.master
|
||||||
sideMenu:
|
sideMenu:
|
||||||
side-menu-item:
|
side-menu-item:
|
||||||
label: 'germanairlinesva.schooling::lang.menu.typeratings'
|
label: 'germanairlinesva.schooling::lang.menu.typeratings'
|
||||||
@@ -45,6 +45,6 @@ navigation:
|
|||||||
url: germanairlinesva/schooling/examtyperating
|
url: germanairlinesva/schooling/examtyperating
|
||||||
icon: icon-file-text
|
icon: icon-file-text
|
||||||
permissions:
|
permissions:
|
||||||
schooling:
|
germanairlinesva.schooling.master:
|
||||||
tab: 'germanairlinesva.schooling::lang.permissions.tab'
|
tab: 'germanairlinesva.schooling::lang.permissions.tab'
|
||||||
label: 'germanairlinesva.schooling::lang.permissions.label'
|
label: 'germanairlinesva.schooling::lang.permissions.label'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php namespace GermanAirlinesVa\Fleet\Updates;
|
<?php namespace GermanAirlinesVa\Schooling\Updates;
|
||||||
|
|
||||||
use Schema;
|
use Schema;
|
||||||
use October\Rain\Database\Updates\Migration;
|
use October\Rain\Database\Updates\Migration;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ class BuilderTableCreateExamAnswers extends Migration
|
|||||||
|
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
|
Schema::connection('germanairlinesva_schooling')->disableForeignKeyConstraints();
|
||||||
Schema::connection('germanairlinesva_schooling')->dropIfExists('exam_answers');
|
Schema::connection('germanairlinesva_schooling')->dropIfExists('exam_answers');
|
||||||
|
Schema::connection('germanairlinesva_schooling')->enableForeignKeyConstraints();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class BuilderTableCreateExamExamAnswerExamQuestion extends Migration
|
|||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::connection('germanairlinesva_schooling')->disableForeignKeyConstraints();
|
Schema::connection('germanairlinesva_schooling')->disableForeignKeyConstraints();
|
||||||
Schema::dropIfExists('germanairlinesva_schooling_exam_exam_answer_exam_question');
|
Schema::connection('germanairlinesva_schooling')->dropIfExists('exam_exam_answer_exam_question');
|
||||||
Schema::connection('germanairlinesva_schooling')->disableForeignKeyConstraints();
|
Schema::connection('germanairlinesva_schooling')->enableForeignKeyConstraints();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ class BuilderTableCreateExams extends Migration
|
|||||||
|
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
|
Schema::connection('germanairlinesva_schooling')->disableForeignKeyConstraints();
|
||||||
Schema::connection('germanairlinesva_schooling')->dropIfExists('exams');
|
Schema::connection('germanairlinesva_schooling')->dropIfExists('exams');
|
||||||
|
Schema::connection('germanairlinesva_schooling')->enableForeignKeyConstraints();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user