Skip to content
GitLab
Menu
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
07ac8f9d
Commit
07ac8f9d
authored
Apr 07, 2009
by
Elliot Pahl
Committed by
Elliot Pahl
Apr 07, 2009
Browse files
Remove use of in blog upgrade.
parent
e97856ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/db/upgrade.php
View file @
07ac8f9d
...
...
@@ -28,17 +28,15 @@ defined('INTERNAL') || die();
function
xmldb_artefact_blog_upgrade
(
$oldversion
=
0
)
{
$status
=
true
;
// There was no database prior to this version.
if
(
$status
&&
$oldversion
<
2006120501
)
{
$status
=
$status
&&
install_from_xmldb_file
(
if
(
$oldversion
<
2006120501
)
{
install_from_xmldb_file
(
get_config
(
'docroot'
)
.
'artefact/blog/db/install.xml'
);
}
if
(
$status
&&
$oldversion
<
2006121501
)
{
if
(
$oldversion
<
2006121501
)
{
$table
=
new
XMLDBTable
(
'artefact_blog_blogpost_file_pending'
);
$table
->
addFieldInfo
(
'file'
,
XMLDB_TYPE_INTEGER
,
'10'
,
null
,
XMLDB_NOTNULL
);
...
...
@@ -47,7 +45,9 @@ function xmldb_artefact_blog_upgrade($oldversion=0) {
$table
->
addKeyInfo
(
'blogpost_file_pending_pk'
,
XMLDB_KEY_PRIMARY
,
array
(
'file'
));
$table
->
addKeyInfo
(
'filefk'
,
XMLDB_KEY_FOREIGN
,
array
(
'file'
),
'artefact'
,
array
(
'id'
));
$status
=
$status
&&
create_table
(
$table
);
if
(
!
create_table
(
$table
))
{
throw
new
SQLException
(
$table
.
" could not be created, check log for errors."
);
}
}
if
(
$oldversion
<
2008012200
)
{
...
...
@@ -125,7 +125,7 @@ function xmldb_artefact_blog_upgrade($oldversion=0) {
}
return
$status
;
return
true
;
}
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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