Sfoglia il codice sorgente

[svn r16521] Fix a bug in the course_module table creation syntax, preventing the table creation (see FS#3040), which seemed to break only the 3 columns view.

Yannick Warnier 16 anni fa
parent
commit
c1bc411a74
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 0
      documentation/changelog.html
  2. 2 2
      main/install/dokeos_main.sql

+ 1 - 0
documentation/changelog.html

@@ -82,6 +82,7 @@
   <li>Added filtering of SCORM objectives when writing to DB (SVN#16437)</li>
   <li>Removed duplication of database write operations for SCORM objectives (SVN#16438)</li>
   <li>Fixed HTTP_REFERER bug in ical_export (FS#3041)</li>
+  <li>Fix a bug in SQL queries for new installs, preventing the creation of the course_module table (FS#3040)</li>
 </ul>
 <br />
 <h3>Known issues</h3>

+ 2 - 2
main/install/dokeos_main.sql

@@ -210,8 +210,8 @@ CREATE TABLE course_module (
   name varchar(100) NOT NULL,
   link varchar(255) NOT NULL,
   image varchar(100) default NULL,
-  row int(10) unsigned NOT NULL default '0',
-  column int(10) unsigned NOT NULL default '0',
+  `row` int(10) unsigned NOT NULL default '0',
+  `column` int(10) unsigned NOT NULL default '0',
   position varchar(20) NOT NULL default 'basic',
   PRIMARY KEY  (id)
 );