Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
f168d45b
Commit
f168d45b
authored
Sep 15, 2010
by
Richard Mansfield
Browse files
Correct not null on submittedtime column (bug #638550)
Signed-off-by:
Richard Mansfield
<
richard.mansfield@catalyst.net.nz
>
parent
ddc327c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
f168d45b
...
...
@@ -2178,5 +2178,20 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
if
(
$oldversion
<
2010091500
)
{
// Previous version of 2010040800 upgrade created the submittedtime
// column not null (see bug #638550)
$table
=
new
XMLDBTable
(
'view'
);
$field
=
new
XMLDBField
(
'submittedtime'
);
$field
->
setAttributes
(
XMLDB_TYPE_DATETIME
,
null
,
null
);
change_field_notnull
(
$table
,
$field
);
// Our crappy db is full of redundant data (submittedtime depends on
// submittedhost or submittedgroup) so it's easy to correct this.
execute_sql
(
"
UPDATE
{
view
}
SET submittedtime = NULL
WHERE submittedtime IS NOT NULL AND submittedgroup IS NULL AND submittedhost IS NULL"
);
}
return
$status
;
}
htdocs/lib/version.php
View file @
f168d45b
...
...
@@ -28,7 +28,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
2010091
3
00
;
$config
->
version
=
2010091
5
00
;
$config
->
release
=
'1.4.0dev'
;
$config
->
minupgradefrom
=
2008040200
;
$config
->
minupgraderelease
=
'1.0.0 (release tag 1.0.0_RELEASE)'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment