3 declare(strict_types=1);
32 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'instructor_send_name')) {
33 $this->db->addTableColumn(
'lti_ext_provider',
'instructor_send_name', [
44 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'instructor_send_email')) {
45 $this->db->addTableColumn(
'lti_ext_provider',
'instructor_send_email', [
56 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'client_id')) {
57 $this->db->addTableColumn(
'lti_ext_provider',
'client_id', [
67 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'enabled_capability')) {
68 $this->db->addTableColumn(
'lti_ext_provider',
'enabled_capability', [
76 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'key_type')) {
77 $this->db->addTableColumn(
'lti_ext_provider',
'key_type', [
87 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'public_key')) {
88 $this->db->addTableColumn(
'lti_ext_provider',
'public_key', [
96 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'public_keyset')) {
97 $this->db->addTableColumn(
'lti_ext_provider',
'public_keyset', [
107 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'initiate_login')) {
108 $this->db->addTableColumn(
'lti_ext_provider',
'initiate_login', [
118 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'redirection_uris')) {
119 $this->db->addTableColumn(
'lti_ext_provider',
'redirection_uris', [
129 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'content_item')) {
130 $this->db->addTableColumn(
'lti_ext_provider',
'content_item', [
141 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'content_item_url')) {
142 $this->db->addTableColumn(
'lti_ext_provider',
'content_item_url', [
152 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'grade_synchronization')) {
153 $this->db->addTableColumn(
'lti_ext_provider',
'grade_synchronization', [
164 if (!$this->db->tableColumnExists(
'lti_ext_provider',
'lti_version')) {
165 $this->db->addTableColumn(
'lti_ext_provider',
'lti_version', [
169 'default' =>
'LTI-1p0' 176 if (!$this->db->tableColumnExists(
'lti_consumer_settings',
'custom_params')) {
177 $this->db->addTableColumn(
'lti_consumer_settings',
'custom_params', [
188 if(!$this->db->tableExists(
'lti_consumer_grades')) {
205 'score_given' => array(
209 'score_maximum' => array(
213 'activity_progress' => array(
218 'grading_progress' => array(
223 'lti_timestamp' => array(
224 'type' =>
'timestamp',
229 'type' =>
'timestamp',
233 $this->db->createTable(
"lti_consumer_grades", $values);
234 $this->db->addPrimaryKey(
"lti_consumer_grades", array(
"id"));
235 $this->db->createSequence(
"lti_consumer_grades");
236 $this->db->addIndex(
"lti_consumer_grades", array(
"obj_id",
"usr_id"),
'i1');
prepare(ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...