Lti provider: adapt entity to accept string as indicated in the IMS LTI standard -refs BT#19577

pull/4580/head
NicoDucou 3 years ago
parent f8a5f7076c
commit 0d54f1bbe3
  1. 8
      plugin/lti_provider/Entity/Result.php
  2. 9
      plugin/lti_provider/README.md

@ -37,9 +37,9 @@ class Result
protected $userId;
/**
* @var int
* @var string
*
* @ORM\Column(name="client_uid", type="integer", nullable=false)
* @ORM\Column(name="client_uid", type="string", nullable=false)
*/
protected $clientUId;
@ -142,12 +142,12 @@ class Result
return $this;
}
public function getClientUId(): int
public function getClientUId(): string
{
return $this->clientUId;
}
public function setClientUId(int $clientUId): Result
public function setClientUId(string $clientUId): Result
{
$this->clientUId = $clientUId;

@ -65,3 +65,12 @@ CREATE TABLE plugin_lti_provider_result (
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
```
## v1.1
### Database changes
You need to execute this SQL query in your database after updating your Chamilo after version 1.11.18 if the plugin was already installed before.
```sql
ALTER TABLE plugin_lti_provider_result MODIFY client_uid varchar(255) NOT NULL;
```

Loading…
Cancel
Save