mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
WHERE 1 is NOT valid postgres syntax. Just pass empty string instead!
This commit is contained in:
parent
fa10cafe61
commit
34f4ff351d
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ function scorm_upgrade($oldversion) {
|
||||||
|
|
||||||
if ($oldversion < 2005070600) {
|
if ($oldversion < 2005070600) {
|
||||||
table_column("scorm", "", "hidetoc", "integer", "", "", "0", "NOT NULL", "browsemode");
|
table_column("scorm", "", "hidetoc", "integer", "", "", "0", "NOT NULL", "browsemode");
|
||||||
$scorms = get_records_select("scorm","1","id ASC");
|
$scorms = get_records_select("scorm","","id ASC");
|
||||||
table_column("scorm", "browsemode", "hidebrowse", "integer", "", "", "0", "NOT NULL", "");
|
table_column("scorm", "browsemode", "hidebrowse", "integer", "", "", "0", "NOT NULL", "");
|
||||||
if (!empty($scorms)) {
|
if (!empty($scorms)) {
|
||||||
foreach($scorms as $scorm) {
|
foreach($scorms as $scorm) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue