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
cc6f31c6
Commit
cc6f31c6
authored
Feb 14, 2007
by
Richard Mansfield
Browse files
Add oldextension field to artefact_file_files table
parent
4261bdba
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/db/install.xml
View file @
cc6f31c6
...
...
@@ -9,6 +9,7 @@
<FIELD
NAME=
"artefact"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"size"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
<FIELD
NAME=
"adminfiles"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
/>
<FIELD
NAME=
"oldextension"
TYPE=
"text"
NOTNULL=
"false"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"artefactfk"
TYPE=
"foreign"
FIELDS=
"artefact"
REFTABLE=
"artefact"
REFFIELDS=
"id"
/>
...
...
htdocs/artefact/file/db/upgrade.php
View file @
cc6f31c6
...
...
@@ -115,6 +115,13 @@ function xmldb_artefact_file_upgrade($oldversion=0) {
PluginArtefactFile
::
resync_filetype_list
();
}
if
(
$oldversion
<
2007021400
)
{
$table
=
new
XMLDBTable
(
'artefact_file_files'
);
$field
=
new
XMLDBField
(
'oldextension'
);
$field
->
setAttributes
(
XMLDB_TYPE_TEXT
);
add_field
(
$table
,
$field
);
}
return
$status
;
}
...
...
htdocs/artefact/file/version.php
View file @
cc6f31c6
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
20070
131
00
;
$config
->
version
=
20070
214
00
;
$config
->
release
=
'0.3'
;
?>
Write
Preview
Markdown
is supported
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