Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
acda994b
Commit
acda994b
authored
Jun 23, 2008
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group column to artefact table
parent
7141418e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
htdocs/lib/db/install.xml
htdocs/lib/db/install.xml
+2
-0
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+5
-0
htdocs/lib/version.php
htdocs/lib/version.php
+1
-1
No files found.
htdocs/lib/db/install.xml
View file @
acda994b
...
...
@@ -228,6 +228,7 @@
<FIELD
NAME=
"parent"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
<FIELD
NAME=
"institution"
TYPE=
"char"
LENGTH=
"255"
NOTNULL=
"false"
/>
<FIELD
NAME=
"group"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
<FIELD
NAME=
"ctime"
TYPE=
"datetime"
NOTNULL=
"true"
/>
<FIELD
NAME=
"mtime"
TYPE=
"datetime"
NOTNULL=
"true"
/>
<FIELD
NAME=
"atime"
TYPE=
"datetime"
NOTNULL=
"true"
/>
...
...
@@ -242,6 +243,7 @@
<KEY
NAME=
"parentfk"
TYPE=
"foreign"
FIELDS=
"parent"
REFTABLE=
"artefact"
REFFIELDS=
"id"
/>
<KEY
NAME=
"usrfk"
TYPE=
"foreign"
FIELDS=
"owner"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
<KEY
NAME=
"institutionfk"
TYPE=
"foreign"
FIELDS=
"institution"
REFTABLE=
"institution"
REFFIELDS=
"name"
/>
<KEY
NAME=
"groupfk"
TYPE=
"foreign"
FIELDS=
"group"
REFTABLE=
"group"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"artefact_tag"
>
...
...
htdocs/lib/db/upgrade.php
View file @
acda994b
...
...
@@ -1065,6 +1065,11 @@ function xmldb_core_upgrade($oldversion=0) {
execute_sql
(
"ALTER TABLE
{
artefact_file_files
}
DROP COLUMN adminfiles"
);
}
if
(
$oldversion
<
2008062300
)
{
execute_sql
(
'ALTER TABLE {artefact} ADD COLUMN "group" BIGINT'
);
execute_sql
(
'ALTER TABLE {artefact} ADD CONSTRAINT {arte_gro_fk} FOREIGN KEY ("group") REFERENCES {group}(id)'
);
}
return
$status
;
}
...
...
htdocs/lib/version.php
View file @
acda994b
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
2008062
0
00
;
$config
->
version
=
2008062
3
00
;
$config
->
release
=
'1.1.0alpha'
;
$config
->
minupgradefrom
=
2007080700
;
$config
->
minupgraderelease
=
'0.8.0 (release tag 0.8.0_RELEASE)'
;
...
...
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