From d3674ed965bac49ade4475ad804465ebaa53d671 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 7 Nov 2006 00:09:37 +0000 Subject: [PATCH] Merged from MOODLE_17_STABLE: fixed the journal upgrade. renaming a null column to not null is unhappy --- mod/journal/db/mysql.php | 2 +- mod/journal/db/postgres7.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/journal/db/mysql.php b/mod/journal/db/mysql.php index 989c00da13..37c34dfc9f 100644 --- a/mod/journal/db/mysql.php +++ b/mod/journal/db/mysql.php @@ -83,7 +83,7 @@ function journal_upgrade($oldversion) { } if ($oldversion < 2006092100) { - table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', ''); + table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '', 'null'); } ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. diff --git a/mod/journal/db/postgres7.php b/mod/journal/db/postgres7.php index 1fa74e6312..9064b093cd 100644 --- a/mod/journal/db/postgres7.php +++ b/mod/journal/db/postgres7.php @@ -58,7 +58,7 @@ function journal_upgrade($oldversion) { } if ($oldversion < 2006092100) { - table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', ''); + table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '', 'null'); } ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions. -- 2.39.5