Minor - Fix documentation issues in card_game plugin

pull/2729/head
Yannick Warnier 7 years ago
parent 4cef2ab174
commit 3bcd26bd71
  1. 2
      plugin/card_game/README.md
  2. 15
      plugin/card_game/card_game.php

@ -17,7 +17,7 @@ execute the following changes in your database to update its structure.
##### Database changes
You need execute these SQL queries in your database if you are upgrading to
Chamilo 1.11.8 and
Chamilo 1.11.8 and the card_game plugin was already installed in your previous version.
```sql
ALTER TABLE plugin_card_game CHANGE COLUMN idUser user_id INT NOT NULL;

@ -31,14 +31,15 @@ class CardGame extends Plugin
public function install()
{
// 'pan' is the ID of the current background image/panel
$sql = "CREATE TABLE IF NOT EXISTS plugin_card_game(
id INT NOT NULL AUTO_INCREMENT,
user_id INT NOT NULL,
pan int NOT NULL, -- the ID of the current background image/panel
access_date DATE NOT NULL,
parts VARCHAR(500) NOT NULL,
PRIMARY KEY (id));
";
id INT NOT NULL AUTO_INCREMENT,
user_id INT NOT NULL,
pan int NOT NULL,
access_date DATE NOT NULL,
parts VARCHAR(500) NOT NULL,
PRIMARY KEY (id)
)";
Database::query($sql);
}

Loading…
Cancel
Save