Attendance: Fix entities and fields created through installation of 1.11.18 (and not update from 1.11.16) - refs #4558

Author: @christianbeeznest
pull/4580/head
christianbeeznest 3 years ago committed by GitHub
parent 922850c471
commit 9635771a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      main/install/configuration.dist.php
  2. 4
      src/Chamilo/CourseBundle/Entity/CAttendanceCalendar.php
  3. 2
      src/Chamilo/CourseBundle/Entity/CAttendanceResultComment.php
  4. 2
      src/Chamilo/CourseBundle/Entity/CAttendanceSheet.php

@ -2298,8 +2298,8 @@ INSERT INTO `extra_field` (`extra_field_type`, `field_type`, `variable`, `displa
// Require DB changes:
// ALTER TABLE c_attendance_sheet ADD signature longtext NULL;
// ALTER TABLE c_attendance_calendar ADD blocked tinyint(1) NULL;
// Requires edit Entity CAttendanceSheet : src/Chamilo/CourseBundle/Entity/CAttendanceSheet.php uncomment "signature" variable.
// Requires edit Entity CAttendanceCalendar : src/Chamilo/CourseBundle/Entity/CAttendanceCalendar.php uncomment "blocked" variable.
// Requires edit Entity CAttendanceSheet : src/Chamilo/CourseBundle/Entity/CAttendanceSheet.php add the @ symbol for attribute $signature into ORM\Column() line.
// Requires edit Entity CAttendanceCalendar : src/Chamilo/CourseBundle/Entity/CAttendanceCalendar.php add the @ symbol for attribute $blocked into ORM\Column() line.
//$_configuration['enable_sign_attendance_sheet'] = false;
// Make sessions by duration always accessible to coaches (otherwise
@ -2346,6 +2346,7 @@ INSERT INTO `extra_field` (`extra_field_type`, `field_type`, `variable`, `displa
// Require DB changes:
//CREATE TABLE c_attendance_result_comment (iid int not null PRIMARY KEY AUTO_INCREMENT, attendance_sheet_id int not null, user_id int not null, created_at datetime not null, updated_at datetime not null, comment text not null, author_user_id int not null);
//CREATE INDEX c_attendance_sheet_user ON track_e_access_complete (attendance_sheet_id, user_id);
// Then add the "@" symbol to CAttendanceResultComment class in the ORM\Entity() line.
//$_configuration['attendance_allow_comments'] = false;
// Enable categories in Wiki tool.

@ -67,9 +67,9 @@ class CAttendanceCalendar
/**
* @var bool
*
* @ORM\Column(name="blocked", type="boolean", nullable=true)
* ORM\Column(name="blocked", type="boolean", nullable=true)
*/
//protected $blocked;
protected $blocked;
/**
* Set attendanceId.

@ -15,7 +15,7 @@ use Doctrine\ORM\Mapping as ORM;
* @ORM\Index(name="user_id", columns={"user_id"})
* }
* )
* @ORM\Entity
* ORM\Entity
*/
class CAttendanceResultComment
{

@ -60,7 +60,7 @@ class CAttendanceSheet
/**
* @var string
*
* @ORM\Column(name="signature", type="string", nullable=true)
* ORM\Column(name="signature", type="string", nullable=true)
*/
protected $signature;

Loading…
Cancel
Save