Gabriel Santiago Plaza 3 роки тому
джерело
коміт
4d6534bcb4
100 змінених файлів з 1990 додано та 12 видалено
  1. 47
    12
      app/controllers/AnnualPlansController.php
  2. 15
    0
      app/controllers/TemplatesController.php
  3. 41
    0
      app/database/migrations/2021_06_13_235538_create_assessments_table.php
  4. 36
    0
      app/database/migrations/2021_06_13_235626_create_criteria_table.php
  5. 42
    0
      app/database/migrations/2021_06_13_235636_create_criterion_rubric.php
  6. 37
    0
      app/database/migrations/2021_06_13_235710_create_outcomes_table.php
  7. 42
    0
      app/database/migrations/2021_06_13_235727_create_rubric_activity_table.php
  8. 32
    0
      app/database/migrations/2021_06_13_235738_create_objective_table.php
  9. 43
    0
      app/database/migrations/2021_06_13_235749_create_objective_outcome_table.php
  10. 47
    0
      app/database/migrations/2021_06_13_235803_create_objective_program_table.php
  11. 46
    0
      app/database/migrations/2021_06_13_235816_create_activity_criterion_table.php
  12. 50
    0
      app/database/migrations/2021_06_13_235829_create_annual_plans_table.php
  13. 49
    0
      app/database/migrations/2021_06_13_235843_create_annual_plan_objective_table.php
  14. 55
    0
      app/database/migrations/2021_06_13_235856_create_annual_plan_transformative_table.php
  15. 52
    0
      app/database/migrations/2021_06_13_235911_create_annual_report_transformative_table.php
  16. 69
    0
      app/database/migrations/2021_06_13_235926_create_assigned_roles_table.php
  17. 47
    0
      app/database/migrations/2021_06_13_235944_create_courses_table.php
  18. 47
    0
      app/database/migrations/2021_06_13_235954_create_course_student_table.php
  19. 47
    0
      app/database/migrations/2021_06_14_000025_create_criterion_objective_outcome_table.php
  20. 49
    0
      app/database/migrations/2021_06_14_000037_create_overview_table.php
  21. 51
    0
      app/database/migrations/2021_06_14_000048_create_outcome_performance_table.php
  22. 27
    0
      app/database/migrations/2021_06_14_000123_create_password_reminders_table.php
  23. 27
    0
      app/database/migrations/2021_06_14_000131_create_password_resets_table.php
  24. 36
    0
      app/database/migrations/2021_06_14_000406_create_programs_table.php
  25. 39
    0
      app/database/migrations/2021_06_14_000415_create_program_criterion_table.php
  26. 40
    0
      app/database/migrations/2021_06_14_000429_create_program_user_table.php
  27. 38
    0
      app/database/migrations/2021_06_14_000507_create_rubrics_table.php
  28. 38
    0
      app/database/migrations/2021_06_14_000518_create_rubric_criteria_scales_table.php
  29. 30
    0
      app/database/migrations/2021_06_14_000529_create_scales_table.php
  30. 33
    0
      app/database/migrations/2021_06_14_000628_create_schools_table.php
  31. 36
    0
      app/database/migrations/2021_06_14_000638_create_semesters_table.php
  32. 44
    0
      app/database/migrations/2021_06_14_000647_create_students_table.php
  33. 39
    0
      app/database/migrations/2021_06_14_000848_create_ta_course_table.php
  34. 48
    0
      app/database/migrations/2021_06_14_000858_create_templates_table.php
  35. 37
    0
      app/database/migrations/2021_06_14_001028_create_templates_criterion_table.php
  36. 38
    0
      app/database/migrations/2021_06_14_001036_create_templates_criterion_scale_table.php
  37. 28
    0
      app/database/migrations/2021_06_14_001124_create_three_year_plan_table.php
  38. 50
    0
      app/database/migrations/2021_06_14_001143_create_transformative_actions_table.php
  39. 47
    0
      app/database/migrations/2021_06_14_001211_create_transformative_objective_program_table.php
  40. 38
    0
      app/database/migrations/2021_06_14_001226_create_typ_program_table.php
  41. 44
    0
      app/database/migrations/2021_06_14_001237_create_typ_semester_table.php
  42. 45
    0
      app/database/migrations/2021_06_14_001247_create_typ_semester_courses_table.php
  43. 46
    0
      app/database/migrations/2021_06_14_001309_create_typ_semester_objective_table.php
  44. 50
    0
      app/database/migrations/2021_06_14_001320_create_typ_semester_outcome_table.php
  45. 49
    0
      app/database/migrations/2021_06_14_001334_create_users_table.php
  46. 48
    0
      app/database/migrations/2021_06_14_003757_create_activities_table.php
  47. 51
    0
      app/database/migrations/2021_06_14_003810_create_activity_criterion_table.php
  48. 0
    0
      app/database/old_migrations/2014_10_05_052350_create_schools_table.php
  49. 0
    0
      app/database/old_migrations/2014_10_05_055013_create_programs_table.php
  50. 0
    0
      app/database/old_migrations/2014_10_06_050335_create_users_table.php
  51. 0
    0
      app/database/old_migrations/2014_10_12_100000_create_password_resets_table.php
  52. 0
    0
      app/database/old_migrations/2014_11_10_035949_create_rubrics_table.php
  53. 0
    0
      app/database/old_migrations/2014_11_29_210957_create_templates_table.php
  54. 0
    0
      app/database/old_migrations/2014_11_29_211309_create_courses_table.php
  55. 0
    0
      app/database/old_migrations/2014_11_29_211310_create_activities_table.php
  56. 0
    0
      app/database/old_migrations/2014_11_29_212240_create_outcomes_table.php
  57. 0
    0
      app/database/old_migrations/2014_11_29_212341_create_criteria_table.php
  58. 0
    0
      app/database/old_migrations/2014_11_29_214028_create_semesters_table.php
  59. 0
    0
      app/database/old_migrations/2014_11_30_134022_create_students_table.php
  60. 0
    0
      app/database/old_migrations/2014_12_07_214036_create_course_student_table.php
  61. 0
    0
      app/database/old_migrations/2015_01_09_171350_create_assessments_table.php
  62. 0
    0
      app/database/old_migrations/2015_01_12_204310_add_columns_to_activities_table.php
  63. 0
    0
      app/database/old_migrations/2015_01_12_222859_add_columns_to_assessments_table.php
  64. 0
    0
      app/database/old_migrations/2015_01_13_010052_add_index_to_assessments_table.php
  65. 0
    0
      app/database/old_migrations/2015_01_13_142849_add_column_to_criteria_table.php
  66. 0
    0
      app/database/old_migrations/2015_01_14_140724_add_columns_to_courses_table.php
  67. 0
    0
      app/database/old_migrations/2015_01_21_124809_add_column_to_courses_table.php
  68. 0
    0
      app/database/old_migrations/2015_01_22_195515_add_column_to_templates_table.php
  69. 0
    0
      app/database/old_migrations/2015_01_23_175455_remove_total_from_assessments_table.php
  70. 0
    0
      app/database/old_migrations/2015_01_23_175923_rename_average_in_assessments_table.php
  71. 0
    0
      app/database/old_migrations/2015_01_28_121848_add_index_to_course_student_table.php
  72. 0
    0
      app/database/old_migrations/2015_01_28_133036_add_criteria_achieved_count_to_activities_table.php
  73. 0
    0
      app/database/old_migrations/2015_02_05_133245_add_transforming_actions_to_activities_table.php
  74. 0
    0
      app/database/old_migrations/2015_02_05_143641_add_assessment_comments_to_activities_table.php
  75. 0
    0
      app/database/old_migrations/2015_02_06_145359_create_password_reminders_table.php
  76. 0
    0
      app/database/old_migrations/2015_02_19_143311_add_is_graduate_to_programs_table.php
  77. 0
    0
      app/database/old_migrations/2015_02_25_170516_add_deleted_at_to_outcomes_table.php
  78. 0
    0
      app/database/old_migrations/2015_02_25_170529_add_deleted_at_to_criteria_table.php
  79. 0
    0
      app/database/old_migrations/2015_02_27_201953_add_criteria_achieved_percentage_to_activities_table.php
  80. 0
    0
      app/database/old_migrations/2015_03_04_132321_add_copyright_and_notes_to_criteria_table.php
  81. 0
    0
      app/database/old_migrations/2015_04_13_183730_add_program_id_to_templates_table.php
  82. 0
    0
      app/database/old_migrations/2015_04_28_141931_add_is_visible_to_templates_table.php
  83. 0
    0
      app/database/old_migrations/2015_05_04_162918_remove_expected_outcome_from_outcomes_table.php
  84. 0
    0
      app/database/old_migrations/2015_05_05_083800_add_decimal_expected_outcome_to_outcomes_table.php
  85. 0
    0
      app/database/old_migrations/2015_05_18_095002_add_first_login_to_users_table.php
  86. 0
    0
      app/database/old_migrations/2015_05_18_131259_add_columns_to_semesters_table.php
  87. 0
    0
      app/database/old_migrations/2015_05_18_134926_add_semester_id_to_courses.php
  88. 0
    0
      app/database/old_migrations/2015_06_10_092319_add_name_to_semesters_table.php
  89. 0
    0
      app/database/old_migrations/2015_06_12_085247_add_visibility_to_semesters_table.php
  90. 0
    0
      app/database/old_migrations/2015_06_16_092223_add_has_access_to_users.php
  91. 0
    0
      app/database/old_migrations/2015_06_18_103255_add_expected_percentage_and_points_to_templates_table.php
  92. 0
    0
      app/database/old_migrations/2015_07_10_150430_add_email_to_students_table.php
  93. 0
    0
      app/database/old_migrations/2015_07_13_111726_add_code_to_programs_table.php
  94. 0
    0
      app/database/old_migrations/2015_07_13_132620_add_ssn_and_employee_number_to_users_table.php
  95. 0
    0
      app/database/old_migrations/2015_08_19_130733_add_semester_id_to_course_student_table.php
  96. 0
    0
      app/database/old_migrations/2015_12_10_145451_add_criteria_weights_to_activities_table.php
  97. 0
    0
      app/database/old_migrations/2016_01_12_132034_add_program_id_to_criteria_table.php
  98. 0
    0
      app/database/old_migrations/2016_01_27_093808_add_date_to_activities_table.php
  99. 0
    0
      app/database/old_migrations/2016_01_27_134306_add_draft_to_activities_table.php
  100. 0
    0
      app/database/old_migrations/2016_03_11_085258_add_school_and_concentration_codes_to_students_table.php

+ 47
- 12
app/controllers/AnnualPlansController.php Переглянути файл

@@ -158,6 +158,23 @@ class AnnualPlansController extends \BaseController
158 158
     return View::make('local.managers.sCoords.annual-plans', compact('title', 'annual_plans', 'current_typ', 'program', 'outcomes', 'allSemesterOrder', 'alltyp'));
159 159
   }
160 160
 
161
+  public function fetchInfo()
162
+  {
163
+    Log::info(Input::get('id'));
164
+    $an_plan = DB::table("annual_plans")->where('id', '=', Input::get('id'))->first();
165
+
166
+    $years = explode('-', $an_plan->academic_year);
167
+    $current_typ_program = DB::select("select * from typ_program where program_id = {$an_plan->program_id} and three_year_plan_id in (select id from three_year_plan where year_start <= {$years[0]} and year_end>= {$years[1]})")[0];
168
+
169
+
170
+    $json_to_send = [];
171
+    $json_to_send["annual_plans"] = $an_plan;
172
+    $json_to_send["outcomes"]["first"] = DB::select("select * from outcomes where id in (select outcome_id from typ_semester_outcome where semester_id = {$an_plan->semester_start} and typ_program_id = {$current_typ_program->id})");
173
+    $json_to_send["allSemesterOrder"]["first"] = DB::select("select * from semesters where id = {$an_plan->semester_start}")[0];
174
+    $json_to_send["outcomes"]["second"] = DB::select("select * from outcomes where id in (select outcome_id from typ_semester_outcome where semester_id ={$an_plan->semester_end} and typ_program_id  = {$current_typ_program->id})");
175
+    $json_to_send["allSemesterOrder"]["second"] = DB::select("select * from semesters where id = {$an_plan->semester_end}")[0];
176
+    return json_encode($json_to_send);
177
+  }
161 178
   /**
162 179
    * Page to create a new plan for the current quinquennium
163 180
    * @var string $title     Title for page
@@ -261,10 +278,10 @@ class AnnualPlansController extends \BaseController
261 278
       foreach ($json_to_send['outcomes'][$trans->id] as $outcome) {
262 279
         $json_to_send['typ_objective'][$outcome->id][$trans->id] = DB::select("select * from typ_semester_objectives where typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcome->id}) and id in (select typ_semester_objective_id from annual_plan_transformative where annual_plan_id ={$annual_id} and trans_id = {$trans->id})");
263 280
         foreach ($json_to_send['typ_objective'][$outcome->id][$trans->id] as $typ) {
264
-          $json_to_send['objective'][$outcome->id][$typ->id][$trans->id] = DB::select("select * from objectives where id = {$typ->objective_id}");
265
-          $json_to_send['coordinator'][$outcome->id][$typ->id][$trans->id] = DB::select("select * from users where id in (select proposing_coordinator_id from annual_plan_transformative where typ_semester_objective_id = {$typ->id} and annual_plan_id = {$annual_id} and trans_id = {$trans->id})");
266
-          $json_to_send['proposed_date'][$outcome->id][$typ->id][$trans->id] = DB::select("select proposed_date from annual_plan_transformative where typ_semester_objective_id = {$typ->id} and annual_plan_id = {$annual_id} and trans_id = {$trans->id} ");
267
-          $json_to_send['all_info_report'][$outcome->id][$typ->id][$trans->id] = DB::select("select art.accomplished, art.cycle_of_life, semesters.name, art.semester_continue,  art.annual_trans_id, art.supervised_coordinator_id  from annual_report_transformative art, (select id from annual_plan_transformative where typ_semester_objective_id = {$typ->id} and annual_plan_id = {$annual_id} and trans_id = {$trans->id} ) apt, semesters  where art.annual_trans_id = apt.id and semesters.id = art.semester_used");
281
+          $json_to_send['objective'][$outcome->id][$typ->id][$trans->id] = DB::select("select * from objectives where id = {$typ->objective_id}")[0];
282
+          $json_to_send['coordinator'][$outcome->id][$typ->id][$trans->id] = DB::select("select * from users where id in (select proposing_coordinator_id from annual_plan_transformative where typ_semester_objective_id = {$typ->id} and annual_plan_id = {$annual_id} and trans_id = {$trans->id})")[0];
283
+          $json_to_send['proposed_date'][$outcome->id][$typ->id][$trans->id] = DB::select("select proposed_date from annual_plan_transformative where typ_semester_objective_id = {$typ->id} and annual_plan_id = {$annual_id} and trans_id = {$trans->id} ")[0];
284
+          $json_to_send['all_info_report'][$outcome->id][$typ->id][$trans->id] = DB::select("select art.accomplished, art.cycle_of_life, semesters.name, art.semester_continue,  art.annual_trans_id, art.supervised_coordinator_id  from annual_report_transformative art, (select id from annual_plan_transformative where typ_semester_objective_id = {$typ->id} and annual_plan_id = {$annual_id} and trans_id = {$trans->id} ) apt, semesters  where art.annual_trans_id = apt.id and semesters.id = art.semester_used")[0];
268 285
         }
269 286
       }
270 287
 
@@ -305,17 +322,29 @@ class AnnualPlansController extends \BaseController
305 322
     foreach ($annual_plan['first']['outcomes'] as $outcomes) {
306 323
 
307 324
       $annual_plan['first']['objectives'][$outcomes->id] = DB::select("select * from objectives where id in (select objective_id from typ_semester_objectives where typ_semester_outcome_id in(select id from typ_semester_outcome where outcome_id = {$outcomes->id} and semester_id = {$an_semesters->semester_start} and typ_program_id in (select id from typ_program where program_id ={$an_semesters->program_id})))");
308
-
325
+      Log::info($outcomes->id);
326
+      Log::info($annual_plan['first']['objectives'][$outcomes->id]);
309 327
       foreach ($annual_plan['first']['objectives'][$outcomes->id] as $objective) {
328
+        Log::info($objective->id);
329
+        Log::info($an_semesters->semester_start);
330
+        Log::info($an_semesters->program_id);
331
+        Log::info(DB::select("select id from typ_semester_objectives where objective_id = {$objective->id} and  typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_start} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id})) "));
310 332
         $annual_plan['first']['typ_objective_id'][$objective->id] = DB::select("select id from typ_semester_objectives where objective_id = {$objective->id} and  typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_start} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id})) ")[0];
311
-        $annual_plan['first']['courses'][$objective->id] = DB::select("select typ.id typ_id, typ.course_id, c.code, c.number from (select course_id, id from typ_semester_courses where typ_semester_objective_id in (select id from typ_semester_objectives where objective_id ={$objective->id} and typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_start} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id})))) typ, courses c where c.id = typ.course_id");
333
+        $annual_plan['first']['courses'][$objective->id] = DB::select("select typ.id typ_id, typ.course_id, c.code, c.number from (select course_id, id from typ_semester_courses where typ_semester_objective_id = {$annual_plan['first']['typ_objective_id'][$objective->id]->id}) typ, courses c where c.id = typ.course_id");
312 334
         foreach ($annual_plan['first']['courses'][$objective->id] as $course) {
313 335
           $annual_plan['first']['criteria'][$objective->id][$course->course_id] = DB::select("select * from new_criteria where id in(select criteria_id from annual_plan_objective where annual_plan_id = {$an_id} and typ_semester_course_id = {$course->typ_id} )");
314 336
         }
315
-
316
-        $annual_plan['first']['trans_actions'][$objective->id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_objective_id in (select id from typ_semester_objectives where objective_id ={$objective->id} and typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_start} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id}))))");
337
+        Log::info($objective->id);
338
+        $annual_plan['first']['trans_actions'][$objective->id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_objective_id ={$annual_plan['first']['typ_objective_id'][$objective->id]->id})");
317 339
         foreach ($annual_plan['first']['trans_actions'][$objective->id] as $trans) {
318
-          $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id] = DB::select("select * from annual_report_transformative where annual_trans_id in (select id from annual_plan_transformative where trans_id = {$trans->id} and typ_semester_objective_id ={$annual_plan['first']['typ_objective_id'][$objective->id]->id} and annual_plan_id = {$an_id} )")[0];
340
+          Log::info($annual_plan['first']['typ_objective_id'][$objective->id]->id);
341
+          Log::info($trans->id);
342
+          Log::info($an_id);
343
+          $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id] = DB::select("select * from annual_report_transformative where annual_trans_id in (select id from annual_plan_transformative where trans_id = {$trans->id} and typ_semester_objective_id ={$annual_plan['first']['typ_objective_id'][$objective->id]->id} and annual_plan_id = {$an_id} )");
344
+          if (count($annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id])) {
345
+            Log::info("entró");
346
+            $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id] =  $annual_plan['fill_info'][$annual_plan['first']['typ_objective_id'][$objective->id]->id][$trans->id][0];
347
+          }
319 348
         }
320 349
       }
321 350
     }
@@ -324,15 +353,21 @@ class AnnualPlansController extends \BaseController
324 353
       foreach ($annual_plan['second']['objectives'][$outcomes->id] as $objective) {
325 354
         $annual_plan['second']['typ_objective_id'][$objective->id] = DB::select("select id from typ_semester_objectives where objective_id = {$objective->id} and  typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_end} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id})) ")[0];
326 355
 
327
-        $annual_plan['second']['courses'][$objective->id] = DB::select("select typ.id typ_id, typ.course_id, c.code, c.number from (select course_id, id from typ_semester_courses where typ_semester_objective_id in (select id from typ_semester_objectives where objective_id ={$objective->id} and typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_end} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id})))) typ, courses c where c.id = typ.course_id");
356
+        $annual_plan['second']['courses'][$objective->id] = DB::select("select typ.id typ_id, typ.course_id, c.code, c.number from (select course_id, id from typ_semester_courses where typ_semester_objective_id = {$annual_plan['second']['typ_objective_id'][$objective->id]->id}) typ, courses c where c.id = typ.course_id");
328 357
         foreach ($annual_plan['second']['courses'][$objective->id] as $course) {
329 358
           $annual_plan['second']['criteria'][$objective->id][$course->course_id] = DB::select("select * from new_criteria where id in(select criteria_id from annual_plan_objective where annual_plan_id = {$an_id} and typ_semester_course_id ={$course->typ_id})");
330 359
         }
331 360
 
332
-        $annual_plan['second']['trans_actions'][$objective->id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_objective_id in (select id from typ_semester_objectives where objective_id ={$objective->id} and typ_semester_outcome_id in (select id from typ_semester_outcome where outcome_id ={$outcomes->id} and semester_id ={$an_semesters->semester_end} and typ_program_id in(select id from typ_program where program_id ={$an_semesters->program_id}))))");
361
+        $annual_plan['second']['trans_actions'][$objective->id] = DB::select("select * from transformative_actions where id in (select trans_id from annual_plan_transformative where typ_semester_objective_id ={$annual_plan['second']['typ_objective_id'][$objective->id]->id})");
333 362
         Log::info($annual_plan['second']['typ_objective_id'][$objective->id]->id);
334 363
         foreach ($annual_plan['second']['trans_actions'][$objective->id] as $trans) {
335
-          $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id] = DB::select("select * from annual_report_transformative where annual_trans_id in (select id from annual_plan_transformative where trans_id = {$trans->id} and typ_semester_objective_id ={$annual_plan['second']['typ_objective_id'][$objective->id]->id} and annual_plan_id = {$an_id} )")[0];
364
+
365
+          $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id] = DB::select("select * from annual_report_transformative where annual_trans_id in (select id from annual_plan_transformative where trans_id = {$trans->id} and typ_semester_objective_id ={$annual_plan['second']['typ_objective_id'][$objective->id]->id} and annual_plan_id = {$an_id} )");
366
+          Log::info("lol");
367
+          if (count($annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id])) {
368
+            Log::info("entró");
369
+            $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id] =  $annual_plan['fill_info'][$annual_plan['second']['typ_objective_id'][$objective->id]->id][$trans->id][0];
370
+          }
336 371
         }
337 372
       }
338 373
     }

+ 15
- 0
app/controllers/TemplatesController.php Переглянути файл

@@ -39,9 +39,24 @@ class TemplatesController extends \BaseController
39 39
 	public function show(Template $template)
40 40
 	{
41 41
 		$title = $template->name;
42
+
42 43
 		return View::make('local.managers.admins.view_template', compact('template', 'title'));
43 44
 	}
44 45
 
46
+	public function onLoadFetch()
47
+	{
48
+		$json_to_send = [];
49
+		$template_id = Input::get('id');
50
+		$json_to_send["criteria"] = DB::table("new_criteria")->join('template_criterion', 'template_criterion.criterion_id', '=', 'new_criteria.id')
51
+			->where("template_criterion.template_id", '=', $template_id)
52
+			->get();
53
+		Log::info($json_to_send["criteria"]);
54
+		foreach ($json_to_send['criteria'] as $criteria) {
55
+			$json_to_send['scales'][$criteria->criterion_id] = DB::table("scales")->join('template_criterion_scale', 'template_criterion_scale.scale_id', '=', 'scales.id')
56
+				->where("template_criterion_scale.template_criterion_id", '=', $criteria->id)->orderBy('position', 'ASC')->get();
57
+		}
58
+		return json_encode($json_to_send);
59
+	}
45 60
 	/**
46 61
 	 * Show the form for creating a new rubric
47 62
 	 *

+ 41
- 0
app/database/migrations/2021_06_13_235538_create_assessments_table.php Переглянути файл

@@ -0,0 +1,41 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateAssessmentsTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('assessments', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('student_id')->unsigned();
14
+			$table->integer('activity_criterion_id')->unsigned();
15
+			$table->integer('score');
16
+			$table
17
+				->foreign('student_id')
18
+				->references('id')
19
+				->on('students')
20
+				->onDelete('cascade')
21
+				->onUpdate('cascade');
22
+			$table
23
+				->foreign('activity_criterion_id')
24
+				->references('id')
25
+				->on('activity_criterion')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table->timestamps();
29
+		});
30
+	}
31
+
32
+	/**
33
+	 * Reverse the migrations.
34
+	 *
35
+	 * @return void
36
+	 */
37
+	public function down()
38
+	{
39
+		Schema::drop('assessments');
40
+	}
41
+}

+ 36
- 0
app/database/migrations/2021_06_13_235626_create_criteria_table.php Переглянути файл

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateCriteriaTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('criteria', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->string('name');
14
+			$table->string('subcriteria')->nullable();
15
+			$table->integer('user_id')->unsigned()->nullable();
16
+			$table->text('copyright')->nullable();
17
+			$table->text('notes')->nullable();
18
+
19
+			$table->timestamps();
20
+			$table->timestamp('deleted_at')->nullable();
21
+
22
+			$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade');
23
+		});
24
+	}
25
+
26
+
27
+	/**
28
+	 * Reverse the migrations.
29
+	 *
30
+	 * @return void
31
+	 */
32
+	public function down()
33
+	{
34
+		Schema::drop('criteria');
35
+	}
36
+}

+ 42
- 0
app/database/migrations/2021_06_13_235636_create_criterion_rubric.php Переглянути файл

@@ -0,0 +1,42 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateCriterionRubric extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('criterion_rubric', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('criterion_id')->unsigned();
14
+			$table->integer('rubric_id')->unsigned();
15
+			$table->timestamps();
16
+
17
+			$table
18
+				->foreign('criterion_id')
19
+				->references('id')
20
+				->on('criteria')
21
+				->onDelete('cascade')
22
+				->onUpdate('cascade');
23
+			$table
24
+				->foreign('rubric_id')
25
+				->references('id')
26
+				->on('rubrics')
27
+				->onDelete('cascade')
28
+				->onUpdate('cascade');
29
+		});
30
+	}
31
+
32
+
33
+	/**
34
+	 * Reverse the migrations.
35
+	 *
36
+	 * @return void
37
+	 */
38
+	public function down()
39
+	{
40
+		Schema::drop('criterion_rubric');
41
+	}
42
+}

+ 37
- 0
app/database/migrations/2021_06_13_235710_create_outcomes_table.php Переглянути файл

@@ -0,0 +1,37 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateOutcomesTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('outcomes', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->string('name');
14
+			$table->text('definition');
15
+			$table->decimal('expected_outcome', 5, 2)->after('definition')->default('66.66');
16
+			$table->timestamps();
17
+			$table->softDeletes();
18
+			$table->integer('new_outcome_id')->unsigned()->nullable();
19
+			$table->date('deactivation_date')->nullable();
20
+
21
+			$table->foreign('new_outcome_id')->references('id')->on('outcomes');
22
+			$table->smallInteger('level');
23
+			$table->date('activation_date');
24
+		});
25
+	}
26
+
27
+
28
+	/**
29
+	 * Reverse the migrations.
30
+	 *
31
+	 * @return void
32
+	 */
33
+	public function down()
34
+	{
35
+		Schema::drop('outcomes');
36
+	}
37
+}

+ 42
- 0
app/database/migrations/2021_06_13_235727_create_rubric_activity_table.php Переглянути файл

@@ -0,0 +1,42 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateRubricActivityTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('rubric_activity', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('rubric_id')->unsigned();
14
+			$table->integer('activity_id')->unsigned();
15
+			$table->timestamps();
16
+
17
+			$table
18
+				->foreign('rubric_id')
19
+				->references('id')
20
+				->on('rubrics')
21
+				->onDelete('cascade')
22
+				->onUpdate('cascade');
23
+			$table
24
+				->foreign('activity_id')
25
+				->references('id')
26
+				->on('activities')
27
+				->onDelete('cascade')
28
+				->onUpdate('cascade');
29
+		});
30
+	}
31
+
32
+
33
+	/**
34
+	 * Reverse the migrations.
35
+	 *
36
+	 * @return void
37
+	 */
38
+	public function down()
39
+	{
40
+		Schema::drop('rubric_activity');
41
+	}
42
+}

+ 32
- 0
app/database/migrations/2021_06_13_235738_create_objective_table.php Переглянути файл

@@ -0,0 +1,32 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateObjectiveTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('objectives', function (Blueprint $table) {
12
+
13
+			$table->increments('id');
14
+
15
+			$table->string('text');
16
+			$table->unique(array('text'));
17
+			$table->timestamps();
18
+			$table->boolean('active')->after('text')->default(1);
19
+		});
20
+	}
21
+
22
+
23
+	/**
24
+	 * Reverse the migrations.
25
+	 *
26
+	 * @return void
27
+	 */
28
+	public function down()
29
+	{
30
+		Schema::drop('objectives');
31
+	}
32
+}

+ 43
- 0
app/database/migrations/2021_06_13_235749_create_objective_outcome_table.php Переглянути файл

@@ -0,0 +1,43 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateObjectiveOutcomeTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('objective_outcome', function (Blueprint $table) {
12
+			$table->increments('id');
13
+
14
+			$table->integer('objective_id')->unsigned();
15
+			$table
16
+				->foreign('objective_id')
17
+				->references('id')
18
+				->on('objectives')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+
22
+			$table->integer('outcome_id')->unsigned();
23
+			$table
24
+				->foreign('outcome_id')
25
+				->references('id')
26
+				->on('outcomes')
27
+				->onDelete('cascade')
28
+				->onUpdate('cascade');
29
+			$table->timestamps();
30
+		});
31
+	}
32
+
33
+
34
+	/**
35
+	 * Reverse the migrations.
36
+	 *
37
+	 * @return void
38
+	 */
39
+	public function down()
40
+	{
41
+		Schema::drop('objective_outcome');
42
+	}
43
+}

+ 47
- 0
app/database/migrations/2021_06_13_235803_create_objective_program_table.php Переглянути файл

@@ -0,0 +1,47 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateObjectiveProgramTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('objective_program', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->integer('program_id')->unsigned();
19
+			$table->integer('objective_id')->unsigned();
20
+
21
+
22
+			$table
23
+				->foreign('objective_id')
24
+				->references('id')
25
+				->on('objectives')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table
29
+				->foreign('program_id')
30
+				->references('id')
31
+				->on('programs')
32
+				->onDelete('cascade')
33
+				->onUpdate('cascade');
34
+			$table->timestamps();
35
+		});
36
+	}
37
+
38
+	/**
39
+	 * Reverse the migrations.
40
+	 *
41
+	 * @return void
42
+	 */
43
+	public function down()
44
+	{
45
+		Schema::drop('objective_program');
46
+	}
47
+}

+ 46
- 0
app/database/migrations/2021_06_13_235816_create_activity_criterion_table.php Переглянути файл

@@ -0,0 +1,46 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateActivityCriterionTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('activity_criterion', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('activity_id')->unsigned();
14
+			$table->integer('criterion_id')->unsigned();
15
+			$table
16
+				->foreign('activity_id')
17
+				->references('id')
18
+				->on('activities')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+			$table
22
+				->foreign('criterion_id')
23
+				->references('id')
24
+				->on('criteria')
25
+				->onDelete('cascade')
26
+				->onUpdate('cascade');
27
+			$table->text('transformative_actions')->nullable();
28
+			$table->integer('expected_student_score')->nullable();
29
+			$table->decimal('expected_percentage_students_achieving', 5, 2)->nullable();
30
+			$table->decimal('percentage_students_who_achieved', 5, 2)->nullable();
31
+			$table->decimal('weight', 3, 2)->default(1.0);
32
+			$table->timestamps();
33
+			$table->text('assessment_comments')->after('transformative_actions')->nullable();
34
+		});
35
+	}
36
+
37
+	/**
38
+	 * Reverse the migrations.
39
+	 *
40
+	 * @return void
41
+	 */
42
+	public function down()
43
+	{
44
+		Schema::drop('activity_criterion');
45
+	}
46
+}

+ 50
- 0
app/database/migrations/2021_06_13_235829_create_annual_plans_table.php Переглянути файл

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateAnnualPlansTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('annual_plans', function (Blueprint $table) {
12
+
13
+			$table->increments('id');
14
+			$table->string('academic_year');
15
+			$table->integer('semester_start')->unsigned();
16
+			$table->foreign('semester_start')
17
+				->references('id')
18
+				->on('semesters')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+			$table->integer('semester_end')->unsigned();
22
+			$table->foreign('semester_end')
23
+				->references('id')
24
+				->on('semesters')
25
+				->onDelete('cascade')
26
+				->onUpdate('cascade');
27
+			$table->integer('program_id')->unsigned();
28
+			$table
29
+				->foreign('program_id')
30
+				->references('id')
31
+				->on('programs')
32
+				->onDelete('cascade')
33
+				->onUpdate('cascade');
34
+			$table->boolean('is_submitted')->default(0);
35
+			$table->dateTime('submitted_on')->nullable();
36
+			$table->timestamps();
37
+		});
38
+	}
39
+
40
+
41
+	/**
42
+	 * Reverse the migrations.
43
+	 *
44
+	 * @return void
45
+	 */
46
+	public function down()
47
+	{
48
+		Schema::drop('annual_plans');
49
+	}
50
+}

+ 49
- 0
app/database/migrations/2021_06_13_235843_create_annual_plan_objective_table.php Переглянути файл

@@ -0,0 +1,49 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateAnnualPlanObjectiveTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('annual_plan_objective', function (Blueprint $table) {
12
+
13
+			$table->increments('id');
14
+			$table->integer('annual_plan_id')->unsigned();
15
+			$table
16
+				->foreign('annual_plan_id')
17
+				->references('id')
18
+				->on('annual_plans')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+			$table->integer('typ_semester_course_id')->unsigned();
22
+			$table
23
+				->foreign('typ_semester_course_id')
24
+				->references('id')
25
+				->on('typ_semester_courses')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table->integer('criteria_id')->unsigned();
29
+			$table->foreign('criteria_id')
30
+				->references('id')
31
+				->on('new_criteria')
32
+				->onUpdate('cascade')
33
+				->onDelete('cascade');
34
+
35
+			$table->timestamps();
36
+		});
37
+	}
38
+
39
+
40
+	/**
41
+	 * Reverse the migrations.
42
+	 *
43
+	 * @return void
44
+	 */
45
+	public function down()
46
+	{
47
+		Schema::drop('annual_plan_objective');
48
+	}
49
+}

+ 55
- 0
app/database/migrations/2021_06_13_235856_create_annual_plan_transformative_table.php Переглянути файл

@@ -0,0 +1,55 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateAnnualPlanTransformativeTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('annual_plan_transformative', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->integer('annual_plan_id')->unsigned();
19
+			$table->integer('trans_id')->unsigned();
20
+			$table->foreign('trans_id')
21
+				->references('id')
22
+				->on('transformative_actions')
23
+				->onDelete('cascade')
24
+				->onUpdate('cascade');
25
+			$table->foreign('annual_plan_id')
26
+				->references('id')
27
+				->on('annual_plans')
28
+				->onDelete('cascade')
29
+				->onUpdate('cascade');
30
+			$table->integer('typ_semester_objective_id')->unsigned();
31
+			$table->foreign('typ_semester_objective_id')
32
+				->references('id')
33
+				->on('typ_semester_objectives')
34
+				->onDelete('cascade')
35
+				->onUpdate('cascade');
36
+			$table->integer('proposing_coordinator_id')->unsigned();
37
+			$table->foreign('proposing_coordinator_id')
38
+				->references('id')
39
+				->on('users')
40
+				->onDelete('restrict')
41
+				->onUpdate('restrict');
42
+			$table->dateTime('proposed_date');
43
+		});
44
+	}
45
+
46
+	/**
47
+	 * Reverse the migrations.
48
+	 *
49
+	 * @return void
50
+	 */
51
+	public function down()
52
+	{
53
+		Schema::drop('annual_plan_transformative');
54
+	}
55
+}

+ 52
- 0
app/database/migrations/2021_06_13_235911_create_annual_report_transformative_table.php Переглянути файл

@@ -0,0 +1,52 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateAnnualReportTransformativeTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('annual_report_transformative', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->boolean('accomplished');
14
+			$table->integer('cycle_of_life');
15
+			$table->integer("semester_used")->unsigned();
16
+			$table->integer('semester_continue')->unsigned()->nullable();
17
+			$table->integer('annual_trans_id')->unsigned();
18
+			$table->foreign('annual_trans_id')
19
+				->references('id')
20
+				->on('annual_plan_transformative')
21
+				->onDelete('cascade')
22
+				->onUpdate('cascade');
23
+			$table->foreign('semester_used')
24
+				->references('id')
25
+				->on('semesters')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table->foreign('semester_continue')
29
+				->references('id')
30
+				->on('semesters')
31
+				->onDelete('cascade')
32
+				->onUpdate('cascade');
33
+			$table->integer('supervised_coordinator_id')->unsigned();
34
+			$table->foreign('supervised_coordinator_id')
35
+				->references('id')
36
+				->on('users')
37
+				->onDelete('restrict')
38
+				->onUpdate('restrict');
39
+			$table->text('comments')->nullable();
40
+		});
41
+	}
42
+
43
+	/**
44
+	 * Reverse the migrations.
45
+	 *
46
+	 * @return void
47
+	 */
48
+	public function down()
49
+	{
50
+		Schema::drop('annual_report_transformative');
51
+	}
52
+}

+ 69
- 0
app/database/migrations/2021_06_13_235926_create_assigned_roles_table.php Переглянути файл

@@ -0,0 +1,69 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateAssignedRolesTable extends Migration {
7
+
8
+	*/
9
+    public function up()
10
+    {
11
+        // Creates the roles table
12
+        Schema::create('roles', function ($table) {
13
+            $table->increments('id')->unsigned();
14
+            $table->string('name')->unique();
15
+            $table->timestamps();
16
+        });
17
+
18
+        // Creates the assigned_roles (Many-to-Many relation) table
19
+        Schema::create('assigned_roles', function ($table) {
20
+            $table->increments('id')->unsigned();
21
+            $table->integer('user_id')->unsigned();
22
+            $table->integer('role_id')->unsigned();
23
+            $table->foreign('user_id')->references('id')->on('users')
24
+                ->onUpdate('cascade')->onDelete('cascade');
25
+            $table->foreign('role_id')->references('id')->on('roles');
26
+        });
27
+
28
+        // Creates the permissions table
29
+        Schema::create('permissions', function ($table) {
30
+            $table->increments('id')->unsigned();
31
+            $table->string('name')->unique();
32
+            $table->string('display_name');
33
+            $table->timestamps();
34
+        });
35
+
36
+        // Creates the permission_role (Many-to-Many relation) table
37
+        Schema::create('permission_role', function ($table) {
38
+            $table->increments('id')->unsigned();
39
+            $table->integer('permission_id')->unsigned();
40
+            $table->integer('role_id')->unsigned();
41
+            $table->foreign('permission_id')->references('id')->on('permissions'); // assumes a users table
42
+            $table->foreign('role_id')->references('id')->on('roles');
43
+        });
44
+    }
45
+
46
+    /**
47
+     * Reverse the migrations.
48
+     *
49
+     * @return  void
50
+     */
51
+    public function down()
52
+    {
53
+        Schema::table('assigned_roles', function (Blueprint $table) {
54
+            $table->dropForeign('assigned_roles_user_id_foreign');
55
+            $table->dropForeign('assigned_roles_role_id_foreign');
56
+        });
57
+
58
+        Schema::table('permission_role', function (Blueprint $table) {
59
+            $table->dropForeign('permission_role_permission_id_foreign');
60
+            $table->dropForeign('permission_role_role_id_foreign');
61
+        });
62
+
63
+        Schema::drop('assigned_roles');
64
+        Schema::drop('permission_role');
65
+        Schema::drop('roles');
66
+        Schema::drop('permissions');
67
+    }
68
+
69
+}

+ 47
- 0
app/database/migrations/2021_06_13_235944_create_courses_table.php Переглянути файл

@@ -0,0 +1,47 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateCoursesTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('courses', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->string('name');
14
+			$table->char('code', 8);
15
+			$table->char('section', 3);
16
+			$table->integer('program_id')->unsigned();
17
+			$table->integer('user_id')->unsigned();
18
+			$table->timestamps();
19
+			$table->text('criteria_achieved')->nullable();
20
+			$table->text('outcomes_achieved')->nullable();
21
+			$table->text('outcomes_attempted')->nullable();
22
+			$table->char('number', 4)->default('0000');
23
+		});
24
+
25
+		Schema::table('courses', function (Blueprint $table) {
26
+			$table->foreign('program_id')->references('id')->on('programs')->onDelete('cascade')->onUpdate('cascade');
27
+			$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade');
28
+		});
29
+		Schema::table('courses', function (Blueprint $table) {
30
+			$table->integer('semester_id')->unsigned()->default(1)->after('user_id');
31
+		});
32
+
33
+		Schema::table('courses', function (Blueprint $table) {
34
+			$table->foreign('semester_id')->references('id')->on('semesters');
35
+		});
36
+	}
37
+
38
+	/**
39
+	 * Reverse the migrations.
40
+	 *
41
+	 * @return void
42
+	 */
43
+	public function down()
44
+	{
45
+		Schema::drop('courses');
46
+	}
47
+}

+ 47
- 0
app/database/migrations/2021_06_13_235954_create_course_student_table.php Переглянути файл

@@ -0,0 +1,47 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateCourseStudentTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('course_student', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->integer('course_id')->unsigned();
19
+			$table->integer('student_id')->unsigned();
20
+			$table->timestamps();
21
+		});
22
+
23
+		Schema::table('course_student', function (Blueprint $table) {
24
+			$table->foreign('course_id')->references('id')->on('courses')->onDelete('cascade')->onUpdate('cascade');
25
+			$table->foreign('student_id')->references('id')->on('students')->onDelete('cascade')->onUpdate('cascade');
26
+		});
27
+		Schema::table('course_student', function (Blueprint $table) {
28
+			$table->unique(array('course_id', 'student_id'));
29
+		});
30
+		Schema::table('course_student', function (Blueprint $table) {
31
+			$table->integer('semester_id')->unsigned()->default(1)->after('student_id');
32
+		});
33
+
34
+		Schema::table('course_student', function (Blueprint $table) {
35
+			$table->foreign('semester_id')->references('id')->on('semesters');
36
+		});
37
+	}
38
+
39
+	/**
40
+	 * Reverse the migrations.
41
+	 *
42
+	 * @return void
43
+	 */
44
+	public function down()
45
+	{
46
+	}
47
+}

+ 47
- 0
app/database/migrations/2021_06_14_000025_create_criterion_objective_outcome_table.php Переглянути файл

@@ -0,0 +1,47 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateCriterionObjectiveOutcomeTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('criterion_objective_outcome', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('criterion_id')->unsigned();
14
+			$table->integer('objective_id')->unsigned();
15
+			$table->integer('outcome_id')->unsigned();
16
+			$table
17
+				->foreign('criterion_id')
18
+				->references('id')
19
+				->on('criteria')
20
+				->onDelete('cascade')
21
+				->onUpdate('cascade');
22
+			$table
23
+				->foreign('objective_id')
24
+				->references('id')
25
+				->on('objectives')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table
29
+				->foreign('outcome_id')
30
+				->references('id')
31
+				->on('outcomes')
32
+				->onDelete('cascade')
33
+				->onUpdate('cascade');
34
+			$table->timestamps();
35
+		});
36
+	}
37
+
38
+	/**
39
+	 * Reverse the migrations.
40
+	 *
41
+	 * @return void
42
+	 */
43
+	public function down()
44
+	{
45
+		Schema::drop('criterion_objective_outcome');
46
+	}
47
+}

+ 49
- 0
app/database/migrations/2021_06_14_000037_create_overview_table.php Переглянути файл

@@ -0,0 +1,49 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateOverviewTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		//
12
+		Schema::create('overview', function (Blueprint $table) {
13
+			$table->increments('id');
14
+
15
+			$table->integer('program_id')->unsigned();
16
+			$table->foreign('program_id')
17
+				->references('id')
18
+				->on('programs')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+			$table->integer('outcome_id')->unsigned();
22
+			$table->foreign('outcome_id')
23
+				->references('id')
24
+				->on('outcomes')
25
+				->onDelete('cascade')
26
+				->onUpdate('cascade');
27
+			$table->integer('semester_id')->unsigned();
28
+			$table->foreign('semester_id')
29
+				->references('id')
30
+				->on('semesters')
31
+				->onDelete('cascade')
32
+				->onUpdate('cascade');
33
+
34
+			$table->integer('total_evaluated')->unsigned();
35
+			$table->integer('total_achieved')->unsigned();
36
+		});
37
+	}
38
+
39
+	/**
40
+	 * Reverse the migrations.
41
+	 *
42
+	 * @return void
43
+	 */
44
+	public function down()
45
+	{
46
+		//
47
+		Schema::drop('overview');
48
+	}
49
+}

+ 51
- 0
app/database/migrations/2021_06_14_000048_create_outcome_performance_table.php Переглянути файл

@@ -0,0 +1,51 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateOutcomePerformanceTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('outcome_performance', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('criterion_id')->unsigned();
14
+			$table->integer('outcome_id')->unsigned();
15
+			$table->integer('semester_id')->unsigned();
16
+			$table->integer('students_attempted');
17
+			$table->integer('students_achieved');
18
+			$table->smallInteger('level');
19
+			$table
20
+				->foreign('criterion_id')
21
+				->references('id')
22
+				->on('criteria')
23
+				->onDelete('cascade')
24
+				->onUpdate('cascade');
25
+			$table
26
+				->foreign('outcome_id')
27
+				->references('id')
28
+				->on('outcomes')
29
+				->onDelete('cascade')
30
+				->onUpdate('cascade');
31
+			$table
32
+				->foreign('semester_id')
33
+				->references('id')
34
+				->on('semesters')
35
+				->onDelete('cascade')
36
+				->onUpdate('cascade');
37
+
38
+			$table->timestamps();
39
+		});
40
+	}
41
+
42
+	/**
43
+	 * Reverse the migrations.
44
+	 *
45
+	 * @return void
46
+	 */
47
+	public function down()
48
+	{
49
+		Schema::drop('outcome_performance');
50
+	}
51
+}

+ 27
- 0
app/database/migrations/2021_06_14_000123_create_password_reminders_table.php Переглянути файл

@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreatePasswordRemindersTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('password_reminders', function (Blueprint $table) {
12
+			$table->string('email')->index();
13
+			$table->string('token')->index();
14
+			$table->timestamp('created_at');
15
+		});
16
+	}
17
+
18
+	/**
19
+	 * Reverse the migrations.
20
+	 *
21
+	 * @return void
22
+	 */
23
+	public function down()
24
+	{
25
+		Schema::drop('password_reminders');
26
+	}
27
+}

+ 27
- 0
app/database/migrations/2021_06_14_000131_create_password_resets_table.php Переглянути файл

@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreatePasswordResetsTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('password_resets', function (Blueprint $table) {
12
+			$table->string('email')->index();
13
+			$table->string('token')->index();
14
+			$table->timestamp('created_at');
15
+		});
16
+	}
17
+
18
+	/**
19
+	 * Reverse the migrations.
20
+	 *
21
+	 * @return void
22
+	 */
23
+	public function down()
24
+	{
25
+		Schema::drop('password_resets');
26
+	}
27
+}

+ 36
- 0
app/database/migrations/2021_06_14_000406_create_programs_table.php Переглянути файл

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateProgramsTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('programs', function (Blueprint $table) {
12
+			$table->engine = 'InnoDB';
13
+			$table->increments('id');
14
+			$table->string('name', 50);
15
+			$table->integer('school_id')->unsigned();
16
+			$table->boolean('restrict_rubrics')->default(false);
17
+			$table->timestamps();
18
+			$table->boolean('is_graduate')->default(false);
19
+			$table->char('code', 4)->after('name')->nullable();
20
+		});
21
+
22
+		Schema::table('programs', function (Blueprint $table) {
23
+			$table->foreign('school_id')->references('id')->on('schools')->onDelete('cascade')->onUpdate('cascade');
24
+		});
25
+	}
26
+
27
+	/**
28
+	 * Reverse the migrations.
29
+	 *
30
+	 * @return void
31
+	 */
32
+	public function down()
33
+	{
34
+		Schema::drop('programs');
35
+	}
36
+}

+ 39
- 0
app/database/migrations/2021_06_14_000415_create_program_criterion_table.php Переглянути файл

@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateProgramCriterionTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('program_criterion', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->timestamps();
14
+			$table->integer('program_id')->nullable()->unsigned();
15
+			$table->foreign('program_id')
16
+				->references('id')
17
+				->on('programs')
18
+				->onDelete('cascade')
19
+				->onUpdate('cascade');
20
+			$table->integer('criterion_id')->unsigned();
21
+			$table
22
+				->foreign('criterion_id')
23
+				->references('id')
24
+				->on('new_criteria')
25
+				->onDelete('cascade')
26
+				->onUpdate('cascade');
27
+		});
28
+	}
29
+
30
+	/**
31
+	 * Reverse the migrations.
32
+	 *
33
+	 * @return void
34
+	 */
35
+	public function down()
36
+	{
37
+		Schema::drop('program_criterion');
38
+	}
39
+}

+ 40
- 0
app/database/migrations/2021_06_14_000429_create_program_user_table.php Переглянути файл

@@ -0,0 +1,40 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateProgramUserTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('program_user', function (Blueprint $table) {
12
+			$table->engine = 'InnoDB';
13
+			$table->increments('id');
14
+			$table->integer('program_id')->unsigned();
15
+			$table->foreign('program_id')
16
+				->references('id')
17
+				->on('programs')
18
+				->onDelete('cascade')
19
+				->onUpdate('cascade');
20
+			$table->integer('user_id')->unsigned();
21
+			$table->foreign('user_id')
22
+				->references('id')
23
+				->on('users')
24
+				->onDelete('cascade')
25
+				->onUpdate('cascade');
26
+			$table->timestamps();
27
+		});
28
+	}
29
+
30
+
31
+	/**
32
+	 * Reverse the migrations.
33
+	 *
34
+	 * @return void
35
+	 */
36
+	public function down()
37
+	{
38
+		Schema::drop('program_user');
39
+	}
40
+}

+ 38
- 0
app/database/migrations/2021_06_14_000507_create_rubrics_table.php Переглянути файл

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateRubricsTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('rubrics', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->string('name');
14
+
15
+			$table->integer('expected_percentage');
16
+			$table->integer('expected_points');
17
+			$table->integer('user_id')->unsigned();
18
+			$table->timestamps();
19
+			$table->integer('num_scales')->unsigned();
20
+			$table->integer('max_score')->unsigned();
21
+		});
22
+
23
+		Schema::table('rubrics', function (Blueprint $table) {
24
+			$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade')->onUpdate('cascade');
25
+		});
26
+	}
27
+
28
+
29
+	/**
30
+	 * Reverse the migrations.
31
+	 *
32
+	 * @return void
33
+	 */
34
+	public function down()
35
+	{
36
+		Schema::drop('rubrics');
37
+	}
38
+}

+ 38
- 0
app/database/migrations/2021_06_14_000518_create_rubric_criteria_scales_table.php Переглянути файл

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateRubricCriteriaScalesTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create("rubric_criteria_scale", function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('rubric_criterion_id')->unsigned();
14
+			$table->integer('scale_id')->unsigned();
15
+			$table->foreign('scale_id')
16
+				->references('id')
17
+				->on('scales')
18
+				->onDelete('cascade')
19
+				->onUpdate('cascade');
20
+			$table->foreign('rubric_criterion_id')
21
+				->references('id')
22
+				->on('criterion_rubric')
23
+				->onDelete('cascade')
24
+				->onUpdate('cascade');
25
+			$table->integer('position');
26
+		});
27
+	}
28
+
29
+	/**
30
+	 * Reverse the migrations.
31
+	 *
32
+	 * @return void
33
+	 */
34
+	public function down()
35
+	{
36
+		Schema::drop('rubric_criteria_scale');
37
+	}
38
+}

+ 30
- 0
app/database/migrations/2021_06_14_000529_create_scales_table.php Переглянути файл

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateScalesTable extends Migration
7
+{
8
+
9
+	function up()
10
+	{
11
+		Schema::create('scales', function (Blueprint $table) {
12
+			$table->increments('id');
13
+
14
+			$table->string('description');
15
+			$table->integer('min_score')->unsigned();
16
+			$table->integer('max_score')->unsigned();
17
+			$table->timestamps();
18
+		});
19
+	}
20
+
21
+	/**
22
+	 * Reverse the migrations.
23
+	 *
24
+	 * @return void
25
+	 */
26
+	public function down()
27
+	{
28
+		Schema::drop('scales');
29
+	}
30
+}

+ 33
- 0
app/database/migrations/2021_06_14_000628_create_schools_table.php Переглянути файл

@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateSchoolsTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('schools', function (Blueprint $table) {
17
+
18
+			$table->increments('id');
19
+			$table->string('name', 50);
20
+			$table->timestamps();
21
+		});
22
+	}
23
+
24
+	/**
25
+	 * Reverse the migrations.
26
+	 *
27
+	 * @return void
28
+	 */
29
+	public function down()
30
+	{
31
+		Schema::drop('schools');
32
+	}
33
+}

+ 36
- 0
app/database/migrations/2021_06_14_000638_create_semesters_table.php Переглянути файл

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateSemestersTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('semesters', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->char('code', 3);
19
+			$table->timestamp('start')->nullable();
20
+			$table->timestamp('end')->nullable();
21
+			$table->string('name', 25)->after('code')->default('');
22
+			$table->boolean('is_visible')->default(false);
23
+		});
24
+	}
25
+
26
+
27
+	/**
28
+	 * Reverse the migrations.
29
+	 *
30
+	 * @return void
31
+	 */
32
+	public function down()
33
+	{
34
+		Schema::drop('semesters');
35
+	}
36
+}

+ 44
- 0
app/database/migrations/2021_06_14_000647_create_students_table.php Переглянути файл

@@ -0,0 +1,44 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateStudentsTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('students', function (Blueprint $table) {
17
+
18
+			$table->increments('id');
19
+			$table->char('number', 9);
20
+			$table->string('name', 100);
21
+			$table->integer('program_id')->unsigned()->nullable();
22
+
23
+			$table->timestamps();
24
+			$table->string('email', 40)->after('name')->default('no.email.olas@upr.edu');
25
+			$table->char('school_code', 2)->after('name')->nullable();
26
+			$table->char('conc_code', 4)->after('school_code')->nullable();
27
+		});
28
+
29
+		Schema::table('students', function (Blueprint $table) {
30
+			$table->foreign('program_id')->references('id')->on('programs')->onDelete('cascade')->onUpdate('cascade');
31
+		});
32
+	}
33
+
34
+
35
+	/**
36
+	 * Reverse the migrations.
37
+	 *
38
+	 * @return void
39
+	 */
40
+	public function down()
41
+	{
42
+		Schema::drop('students');
43
+	}
44
+}

+ 39
- 0
app/database/migrations/2021_06_14_000848_create_ta_course_table.php Переглянути файл

@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTaCourseTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('ta_course', function (Blueprint $table) {
12
+			$table->increments('id');
13
+
14
+			$table->integer('ta_id')->unsigned();
15
+			$table->foreign('ta_id')
16
+				->references('id')
17
+				->on('transformative_actions')
18
+				->onDelete('cascade')
19
+				->onUpdate('cascade');
20
+
21
+			$table->integer('course_id')->unsigned();
22
+			$table->foreign('course_id')
23
+				->references('id')
24
+				->on('courses')
25
+				->onDelete('cascade')
26
+				->onUpdate('cascade');
27
+		});
28
+	}
29
+
30
+	/**
31
+	 * Reverse the migrations.
32
+	 *
33
+	 * @return void
34
+	 */
35
+	public function down()
36
+	{
37
+		Schema::drop('ta_course');
38
+	}
39
+}

+ 48
- 0
app/database/migrations/2021_06_14_000858_create_templates_table.php Переглянути файл

@@ -0,0 +1,48 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTemplatesTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('templates', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->string('name');
19
+
20
+			$table->timestamps();
21
+			$table->integer('school_id')->unsigned()->nullable();
22
+			$table
23
+				->foreign('school_id')
24
+				->references('id')
25
+				->on('schools')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+
29
+			$table->integer('program_id')->unsigned()->nullable();
30
+			$table->foreign('program_id')->references('id')->on('programs');
31
+			$table->boolean('is_visible')->default(false);
32
+			$table->integer('expected_percentage')->after('contents')->default(70);
33
+			$table->integer('expected_points')->after('expected_percentage')->default(5);
34
+			$table->integer('num_scales')->unsigned();
35
+			$table->integer('max_score')->unsigned();
36
+		});
37
+	}
38
+
39
+	/**
40
+	 * Reverse the migrations.
41
+	 *
42
+	 * @return void
43
+	 */
44
+	public function down()
45
+	{
46
+		Schema::drop('templates');
47
+	}
48
+}

+ 37
- 0
app/database/migrations/2021_06_14_001028_create_templates_criterion_table.php Переглянути файл

@@ -0,0 +1,37 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTemplatesCriterionTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('template_criterion', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('template_id')->unsigned();
14
+			$table->integer('criterion_id')->unsigned();
15
+			$table->foreign('criterion_id')
16
+				->references('id')
17
+				->on('new_criteria')
18
+				->onDelete('cascade')
19
+				->onUpdate('cascade');
20
+			$table->foreign('template_id')
21
+				->references('id')
22
+				->on('templates')
23
+				->onDelete('cascade')
24
+				->onUpdate('cascade');
25
+		});
26
+	}
27
+
28
+	/**
29
+	 * Reverse the migrations.
30
+	 *
31
+	 * @return void
32
+	 */
33
+	public function down()
34
+	{
35
+		Schema::drop('template_criterion');
36
+	}
37
+}

+ 38
- 0
app/database/migrations/2021_06_14_001036_create_templates_criterion_scale_table.php Переглянути файл

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTemplatesCriterionScaleTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('template_criterion_scale', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->integer('template_criterion_id')->unsigned();
14
+			$table->integer('scale_id')->unsigned();
15
+			$table->foreign('template_criterion_id')
16
+				->references('id')
17
+				->on('template_criterion')
18
+				->onDelete('cascade')
19
+				->onUpdate('cascade');
20
+			$table->foreign('scale_id')
21
+				->references('id')
22
+				->on('scales')
23
+				->onDelete('cascade')
24
+				->onUpdate('cascade');
25
+			$table->integer('position');
26
+		});
27
+	}
28
+
29
+	/**
30
+	 * Reverse the migrations.
31
+	 *
32
+	 * @return void
33
+	 */
34
+	public function down()
35
+	{
36
+		Schema::drop('template_criterion_scale');
37
+	}
38
+}

+ 28
- 0
app/database/migrations/2021_06_14_001124_create_three_year_plan_table.php Переглянути файл

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateThreeYearPlanTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('three_year_plan', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->timestamps();
14
+			$table->integer('year_start')->unsigned();
15
+			$table->integer('year_end')->unsigned();
16
+		});
17
+	}
18
+
19
+	/**
20
+	 * Reverse the migrations.
21
+	 *
22
+	 * @return void
23
+	 */
24
+	public function down()
25
+	{
26
+		Schema::drop('three_year_plan');
27
+	}
28
+}

+ 50
- 0
app/database/migrations/2021_06_14_001143_create_transformative_actions_table.php Переглянути файл

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTransformativeActionsTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('transformative_actions', function (Blueprint $table) {
17
+
18
+			$table->increments('id');
19
+			$table->timestamps();
20
+			$table->boolean('is_custom');
21
+			$table->integer('user_id')->unsigned()->nullable();
22
+			$table->integer('program_id')->unsigned()->nullable();
23
+			$table->text('at_text');
24
+			$table->text('description');
25
+			$table->boolean('by_professor');
26
+
27
+			$table->foreign('user_id')
28
+				->references('id')
29
+				->on('users')
30
+				->onDelete('cascade')
31
+				->onUpdate('cascade');
32
+
33
+			$table->foreign('program_id')
34
+				->references('id')
35
+				->on('programs')
36
+				->onDelete('cascade')
37
+				->onUpdate('cascade');
38
+		});
39
+	}
40
+
41
+	/**
42
+	 * Reverse the migrations.
43
+	 *
44
+	 * @return void
45
+	 */
46
+	public function down()
47
+	{
48
+		Schema::drop('transformative_actions');
49
+	}
50
+}

+ 47
- 0
app/database/migrations/2021_06_14_001211_create_transformative_objective_program_table.php Переглянути файл

@@ -0,0 +1,47 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTransformativeObjectiveProgramTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('transformative_objective_program', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->timestamps();
14
+
15
+			$table->integer('ta_id')->unsigned();
16
+			$table->foreign('ta_id')
17
+				->references('id')
18
+				->on('transformative_actions')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+
22
+			$table->integer('objective_id')->unsigned();
23
+			$table->foreign('objective_id')
24
+				->references('id')
25
+				->on('objectives')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+
29
+			$table->integer('program_id')->unsigned();
30
+			$table->foreign('program_id')
31
+				->references('id')
32
+				->on('programs')
33
+				->onDelete('cascade')
34
+				->onUpdate('cascade');
35
+		});
36
+	}
37
+
38
+	/**
39
+	 * Reverse the migrations.
40
+	 *
41
+	 * @return void
42
+	 */
43
+	public function down()
44
+	{
45
+		Schema::drop('transformative_objective_program');
46
+	}
47
+}

+ 38
- 0
app/database/migrations/2021_06_14_001226_create_typ_program_table.php Переглянути файл

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTypProgramTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('typ_program', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->timestamps();
14
+			$table->integer('three_year_plan_id')->unsigned();
15
+			$table->integer('program_id')->unsigned();
16
+			$table->foreign('program_id')
17
+				->references('id')
18
+				->on('programs')
19
+				->onDelete('cascade')
20
+				->onUpdate('cascade');
21
+			$table->foreign('three_year_plan_id')
22
+				->references('id')
23
+				->on('three_year_plan')
24
+				->onDelete('cascade')
25
+				->onUpdate('cascade');
26
+		});
27
+	}
28
+
29
+	/**
30
+	 * Reverse the migrations.
31
+	 *
32
+	 * @return void
33
+	 */
34
+	public function down()
35
+	{
36
+		Schema::drop('typ_program');
37
+	}
38
+}

+ 44
- 0
app/database/migrations/2021_06_14_001237_create_typ_semester_table.php Переглянути файл

@@ -0,0 +1,44 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTypSemesterTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('typ_semesters', function (Blueprint $table) {
12
+			// id unico
13
+			$table->increments('id')->unsigned();
14
+			// id del ciclo que pertenece
15
+			$table->integer('typ_id')->unsigned();
16
+			// semestre n
17
+			$table->integer('semester_id')->unsigned();
18
+			$table
19
+				->foreign('typ_id')
20
+				->references('id')
21
+				->on('three_year_plan')
22
+				->onDelete('cascade')
23
+				->onUpdate('cascade');
24
+			$table
25
+				->foreign('semester_id')
26
+				->references('id')
27
+				->on('semesters')
28
+				->onDelete('cascade')
29
+				->onUpdate('cascade');
30
+			$table->timestamps();
31
+		});
32
+	}
33
+
34
+	/**
35
+	 * Reverse the migrations.
36
+	 *
37
+	 * @return void
38
+	 */
39
+	public function down()
40
+	{
41
+		//
42
+		Schema::drop('typ_semesters');
43
+	}
44
+}

+ 45
- 0
app/database/migrations/2021_06_14_001247_create_typ_semester_courses_table.php Переглянути файл

@@ -0,0 +1,45 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTypSemesterCoursesTable extends Migration
7
+{
8
+
9
+
10
+	public function up()
11
+	{
12
+		Schema::create('typ_semester_courses', function (Blueprint $table) {
13
+			$table->increments('id');
14
+			$table->timestamps();
15
+			$table->integer('typ_semester_objective_id')->unsigned();
16
+			$table->integer('course_id')->unsigned();
17
+
18
+
19
+			$table->foreign('typ_semester_objective_id')
20
+				->references('id')
21
+				->on('typ_semester_objectives')
22
+				->onDelete('cascade')
23
+				->onUpdate('cascade');
24
+			$table->foreign('course_id')
25
+				->references('id')
26
+				->on('courses')
27
+				->onDelete('cascade')
28
+				->onUpdate('cascade');
29
+		});
30
+	}
31
+
32
+	/**
33
+	 * Reverse the migrations.
34
+	 *
35
+	 * @return void
36
+	 */
37
+	public function down()
38
+	{
39
+		Schema::table('typ_semester_courses', function (Blueprint $table) {
40
+			$table->dropForeign("typ_semester_courses_course_id_foreign");
41
+			$table->dropForeign("typ_semester_courses_typ_semester_outcome_id_foreign");
42
+		});
43
+		Schema::drop('typ_semester_courses');
44
+	}
45
+}

+ 46
- 0
app/database/migrations/2021_06_14_001309_create_typ_semester_objective_table.php Переглянути файл

@@ -0,0 +1,46 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTypSemesterObjectiveTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('typ_semester_objectives', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->timestamps();
19
+			$table->integer('typ_semester_outcome_id')->unsigned();
20
+			$table->integer('objective_id')->unsigned();
21
+
22
+
23
+			$table->foreign('typ_semester_outcome_id')
24
+				->references('id')
25
+				->on('typ_semester_outcome')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table->foreign('objective_id')
29
+				->references('id')
30
+				->on('objectives')
31
+				->onDelete('cascade')
32
+				->onUpdate('cascade');
33
+		});
34
+	}
35
+
36
+	/**
37
+	 * Reverse the migrations.
38
+	 *
39
+	 * @return void
40
+	 */
41
+	public function down()
42
+	{
43
+
44
+		Schema::drop('typ_semester_objectives');
45
+	}
46
+}

+ 50
- 0
app/database/migrations/2021_06_14_001320_create_typ_semester_outcome_table.php Переглянути файл

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateTypSemesterOutcomeTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('typ_semester_outcome', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->timestamps();
19
+			$table->integer('typ_program_id')->unsigned();
20
+			$table->integer('semester_id')->unsigned();
21
+			$table->integer('outcome_id')->unsigned();
22
+
23
+			$table->foreign('outcome_id')
24
+				->references('id')
25
+				->on('outcomes')
26
+				->onDelete('cascade')
27
+				->onUpdate('cascade');
28
+			$table->foreign('semester_id')
29
+				->references('id')
30
+				->on('semesters')
31
+				->onDelete('cascade')
32
+				->onUpdate('cascade');
33
+			$table->foreign('typ_program_id')
34
+				->references('id')
35
+				->on('typ_program')
36
+				->onDelete('cascade')
37
+				->onUpdate('cascade');
38
+		});
39
+	}
40
+
41
+	/**
42
+	 * Reverse the migrations.
43
+	 *
44
+	 * @return void
45
+	 */
46
+	public function down()
47
+	{
48
+		Schema::drop('typ_semester_outcome');
49
+	}
50
+}

+ 49
- 0
app/database/migrations/2021_06_14_001334_create_users_table.php Переглянути файл

@@ -0,0 +1,49 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateUsersTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('users', function (Blueprint $table) {
17
+
18
+			$table->increments('id');
19
+			$table->string('first_name', 20);
20
+			$table->string('surnames', 40);
21
+			$table->string('email', 50)->unique();
22
+			$table->string('alternate_email', 50)->unique()->nullable();
23
+
24
+			$table->integer('role');
25
+			$table->integer('school_id')->nullable();
26
+
27
+
28
+			$table->boolean('has_access')->after('program_id')->default(false);
29
+			$table->string('ssn', 9)->after('id')->nullable()->unique();
30
+			$table->string('number', 10)->after('ssn')->nullable()->unique();
31
+			$table->timestamp('last_login')->after('updated_at')->nullable();
32
+			$table->string('office_phone', 20)->after('alternate_email')->nullable();
33
+			$table->string('office_extension', 5)->after('office_phone')->nullable();
34
+			$table->string('cell_phone', 20)->after('office_extension')->nullable();
35
+			$table->rememberToken();
36
+			$table->timestamps();
37
+		});
38
+	}
39
+
40
+	/**
41
+	 * Reverse the migrations.
42
+	 *
43
+	 * @return void
44
+	 */
45
+	public function down()
46
+	{
47
+		Schema::drop('users');
48
+	}
49
+}

+ 48
- 0
app/database/migrations/2021_06_14_003757_create_activities_table.php Переглянути файл

@@ -0,0 +1,48 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateActivitiesTable extends Migration
7
+{
8
+
9
+	public function up()
10
+	{
11
+		Schema::create('activities', function (Blueprint $table) {
12
+			$table->increments('id');
13
+			$table->string('name');
14
+			$table->string('description');
15
+			$table->integer('course_id')->unsigned();
16
+
17
+			$table->timestamps();
18
+			$table->text('criteria_achieved')->nullable();
19
+			$table->text('outcomes_achieved')->nullable();
20
+			$table->text('outcomes_attempted')->nullable();
21
+
22
+			$table->text('assessment_comments')->nullable();
23
+			$table->text('transforming_actions')->nullable();
24
+			$table->text('criteria_achieved_percentage')->nullable();
25
+			$table->text('criteria_weights')->after('criteria_achieved')->nullable();
26
+			$table->date('date')->after('rubric_id');
27
+			$table->boolean('draft')->after('date')->default(0);
28
+			$table->text('criteria_participant_count')->nullable();
29
+			$table->text('criteria_achiever_count')->nullable();
30
+			DB::statement('ALTER TABLE `activities` MODIFY `course_id` INTEGER UNSIGNED NULL;');
31
+			DB::statement('SET FOREIGN_KEY_CHECKS=1;');
32
+		});
33
+
34
+		Schema::table('activities', function (Blueprint $table) {
35
+			$table->foreign('course_id')->references('id')->on('courses')->onDelete('cascade')->onUpdate('cascade');
36
+		});
37
+	}
38
+
39
+	/**
40
+	 * Reverse the migrations.
41
+	 *
42
+	 * @return void
43
+	 */
44
+	public function down()
45
+	{
46
+		Schema::drop('activities');
47
+	}
48
+}

+ 51
- 0
app/database/migrations/2021_06_14_003810_create_activity_criterion_table.php Переглянути файл

@@ -0,0 +1,51 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateActivityCriterionTable extends Migration
7
+{
8
+
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create('activity_criterion', function (Blueprint $table) {
17
+			$table->increments('id');
18
+			$table->integer('activity_id')->unsigned();
19
+			$table->integer('criterion_id')->unsigned();
20
+			$table
21
+				->foreign('activity_id')
22
+				->references('id')
23
+				->on('activities')
24
+				->onDelete('cascade')
25
+				->onUpdate('cascade');
26
+			$table
27
+				->foreign('criterion_id')
28
+				->references('id')
29
+				->on('criteria')
30
+				->onDelete('cascade')
31
+				->onUpdate('cascade');
32
+			$table->text('transformative_actions')->nullable();
33
+			$table->integer('expected_student_score')->nullable();
34
+			$table->decimal('expected_percentage_students_achieving', 5, 2)->nullable();
35
+			$table->decimal('percentage_students_who_achieved', 5, 2)->nullable();
36
+			$table->decimal('weight', 3, 2)->default(1.0);
37
+			$table->text('assessment_comments')->after('transformative_actions')->nullable();
38
+			$table->timestamps();
39
+		});
40
+	}
41
+
42
+	/**
43
+	 * Reverse the migrations.
44
+	 *
45
+	 * @return void
46
+	 */
47
+	public function down()
48
+	{
49
+		Schema::drop('activity_criterion');
50
+	}
51
+}

app/database/migrations/2014_10_05_052350_create_schools_table.php → app/database/old_migrations/2014_10_05_052350_create_schools_table.php Переглянути файл


app/database/migrations/2014_10_05_055013_create_programs_table.php → app/database/old_migrations/2014_10_05_055013_create_programs_table.php Переглянути файл


app/database/migrations/2014_10_06_050335_create_users_table.php → app/database/old_migrations/2014_10_06_050335_create_users_table.php Переглянути файл


app/database/migrations/2014_10_12_100000_create_password_resets_table.php → app/database/old_migrations/2014_10_12_100000_create_password_resets_table.php Переглянути файл


app/database/migrations/2014_11_10_035949_create_rubrics_table.php → app/database/old_migrations/2014_11_10_035949_create_rubrics_table.php Переглянути файл


app/database/migrations/2014_11_29_210957_create_templates_table.php → app/database/old_migrations/2014_11_29_210957_create_templates_table.php Переглянути файл


app/database/migrations/2014_11_29_211309_create_courses_table.php → app/database/old_migrations/2014_11_29_211309_create_courses_table.php Переглянути файл


app/database/migrations/2014_11_29_211310_create_activities_table.php → app/database/old_migrations/2014_11_29_211310_create_activities_table.php Переглянути файл


app/database/migrations/2014_11_29_212240_create_outcomes_table.php → app/database/old_migrations/2014_11_29_212240_create_outcomes_table.php Переглянути файл


app/database/migrations/2014_11_29_212341_create_criteria_table.php → app/database/old_migrations/2014_11_29_212341_create_criteria_table.php Переглянути файл


app/database/migrations/2014_11_29_214028_create_semesters_table.php → app/database/old_migrations/2014_11_29_214028_create_semesters_table.php Переглянути файл


app/database/migrations/2014_11_30_134022_create_students_table.php → app/database/old_migrations/2014_11_30_134022_create_students_table.php Переглянути файл


app/database/migrations/2014_12_07_214036_create_course_student_table.php → app/database/old_migrations/2014_12_07_214036_create_course_student_table.php Переглянути файл


app/database/migrations/2015_01_09_171350_create_assessments_table.php → app/database/old_migrations/2015_01_09_171350_create_assessments_table.php Переглянути файл


app/database/migrations/2015_01_12_204310_add_columns_to_activities_table.php → app/database/old_migrations/2015_01_12_204310_add_columns_to_activities_table.php Переглянути файл


app/database/migrations/2015_01_12_222859_add_columns_to_assessments_table.php → app/database/old_migrations/2015_01_12_222859_add_columns_to_assessments_table.php Переглянути файл


app/database/migrations/2015_01_13_010052_add_index_to_assessments_table.php → app/database/old_migrations/2015_01_13_010052_add_index_to_assessments_table.php Переглянути файл


app/database/migrations/2015_01_13_142849_add_column_to_criteria_table.php → app/database/old_migrations/2015_01_13_142849_add_column_to_criteria_table.php Переглянути файл


app/database/migrations/2015_01_14_140724_add_columns_to_courses_table.php → app/database/old_migrations/2015_01_14_140724_add_columns_to_courses_table.php Переглянути файл


app/database/migrations/2015_01_21_124809_add_column_to_courses_table.php → app/database/old_migrations/2015_01_21_124809_add_column_to_courses_table.php Переглянути файл


app/database/migrations/2015_01_22_195515_add_column_to_templates_table.php → app/database/old_migrations/2015_01_22_195515_add_column_to_templates_table.php Переглянути файл


app/database/migrations/2015_01_23_175455_remove_total_from_assessments_table.php → app/database/old_migrations/2015_01_23_175455_remove_total_from_assessments_table.php Переглянути файл


app/database/migrations/2015_01_23_175923_rename_average_in_assessments_table.php → app/database/old_migrations/2015_01_23_175923_rename_average_in_assessments_table.php Переглянути файл


app/database/migrations/2015_01_28_121848_add_index_to_course_student_table.php → app/database/old_migrations/2015_01_28_121848_add_index_to_course_student_table.php Переглянути файл


app/database/migrations/2015_01_28_133036_add_criteria_achieved_count_to_activities_table.php → app/database/old_migrations/2015_01_28_133036_add_criteria_achieved_count_to_activities_table.php Переглянути файл


app/database/migrations/2015_02_05_133245_add_transforming_actions_to_activities_table.php → app/database/old_migrations/2015_02_05_133245_add_transforming_actions_to_activities_table.php Переглянути файл


app/database/migrations/2015_02_05_143641_add_assessment_comments_to_activities_table.php → app/database/old_migrations/2015_02_05_143641_add_assessment_comments_to_activities_table.php Переглянути файл


app/database/migrations/2015_02_06_145359_create_password_reminders_table.php → app/database/old_migrations/2015_02_06_145359_create_password_reminders_table.php Переглянути файл


app/database/migrations/2015_02_19_143311_add_is_graduate_to_programs_table.php → app/database/old_migrations/2015_02_19_143311_add_is_graduate_to_programs_table.php Переглянути файл


app/database/migrations/2015_02_25_170516_add_deleted_at_to_outcomes_table.php → app/database/old_migrations/2015_02_25_170516_add_deleted_at_to_outcomes_table.php Переглянути файл


app/database/migrations/2015_02_25_170529_add_deleted_at_to_criteria_table.php → app/database/old_migrations/2015_02_25_170529_add_deleted_at_to_criteria_table.php Переглянути файл


app/database/migrations/2015_02_27_201953_add_criteria_achieved_percentage_to_activities_table.php → app/database/old_migrations/2015_02_27_201953_add_criteria_achieved_percentage_to_activities_table.php Переглянути файл


app/database/migrations/2015_03_04_132321_add_copyright_and_notes_to_criteria_table.php → app/database/old_migrations/2015_03_04_132321_add_copyright_and_notes_to_criteria_table.php Переглянути файл


app/database/migrations/2015_04_13_183730_add_program_id_to_templates_table.php → app/database/old_migrations/2015_04_13_183730_add_program_id_to_templates_table.php Переглянути файл


app/database/migrations/2015_04_28_141931_add_is_visible_to_templates_table.php → app/database/old_migrations/2015_04_28_141931_add_is_visible_to_templates_table.php Переглянути файл


app/database/migrations/2015_05_04_162918_remove_expected_outcome_from_outcomes_table.php → app/database/old_migrations/2015_05_04_162918_remove_expected_outcome_from_outcomes_table.php Переглянути файл


app/database/migrations/2015_05_05_083800_add_decimal_expected_outcome_to_outcomes_table.php → app/database/old_migrations/2015_05_05_083800_add_decimal_expected_outcome_to_outcomes_table.php Переглянути файл


app/database/migrations/2015_05_18_095002_add_first_login_to_users_table.php → app/database/old_migrations/2015_05_18_095002_add_first_login_to_users_table.php Переглянути файл


app/database/migrations/2015_05_18_131259_add_columns_to_semesters_table.php → app/database/old_migrations/2015_05_18_131259_add_columns_to_semesters_table.php Переглянути файл


app/database/migrations/2015_05_18_134926_add_semester_id_to_courses.php → app/database/old_migrations/2015_05_18_134926_add_semester_id_to_courses.php Переглянути файл


app/database/migrations/2015_06_10_092319_add_name_to_semesters_table.php → app/database/old_migrations/2015_06_10_092319_add_name_to_semesters_table.php Переглянути файл


app/database/migrations/2015_06_12_085247_add_visibility_to_semesters_table.php → app/database/old_migrations/2015_06_12_085247_add_visibility_to_semesters_table.php Переглянути файл


app/database/migrations/2015_06_16_092223_add_has_access_to_users.php → app/database/old_migrations/2015_06_16_092223_add_has_access_to_users.php Переглянути файл


app/database/migrations/2015_06_18_103255_add_expected_percentage_and_points_to_templates_table.php → app/database/old_migrations/2015_06_18_103255_add_expected_percentage_and_points_to_templates_table.php Переглянути файл


app/database/migrations/2015_07_10_150430_add_email_to_students_table.php → app/database/old_migrations/2015_07_10_150430_add_email_to_students_table.php Переглянути файл


app/database/migrations/2015_07_13_111726_add_code_to_programs_table.php → app/database/old_migrations/2015_07_13_111726_add_code_to_programs_table.php Переглянути файл


app/database/migrations/2015_07_13_132620_add_ssn_and_employee_number_to_users_table.php → app/database/old_migrations/2015_07_13_132620_add_ssn_and_employee_number_to_users_table.php Переглянути файл


app/database/migrations/2015_08_19_130733_add_semester_id_to_course_student_table.php → app/database/old_migrations/2015_08_19_130733_add_semester_id_to_course_student_table.php Переглянути файл


app/database/migrations/2015_12_10_145451_add_criteria_weights_to_activities_table.php → app/database/old_migrations/2015_12_10_145451_add_criteria_weights_to_activities_table.php Переглянути файл


app/database/migrations/2016_01_12_132034_add_program_id_to_criteria_table.php → app/database/old_migrations/2016_01_12_132034_add_program_id_to_criteria_table.php Переглянути файл


app/database/migrations/2016_01_27_093808_add_date_to_activities_table.php → app/database/old_migrations/2016_01_27_093808_add_date_to_activities_table.php Переглянути файл


app/database/migrations/2016_01_27_134306_add_draft_to_activities_table.php → app/database/old_migrations/2016_01_27_134306_add_draft_to_activities_table.php Переглянути файл


app/database/migrations/2016_03_11_085258_add_school_and_concentration_codes_to_students_table.php → app/database/old_migrations/2016_03_11_085258_add_school_and_concentration_codes_to_students_table.php Переглянути файл


Деякі файли не було показано, через те що забагато файлів було змінено