Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
db4232df
Commit
db4232df
authored
Aug 12, 2008
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add template column to view table
parent
1d7d32fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
htdocs/lib/db/install.xml
htdocs/lib/db/install.xml
+1
-0
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+3
-0
htdocs/lib/version.php
htdocs/lib/version.php
+1
-1
No files found.
htdocs/lib/db/install.xml
View file @
db4232df
...
...
@@ -509,6 +509,7 @@
<FIELD
NAME=
"submittedto"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
<FIELD
NAME=
"numcolumns"
TYPE=
"int"
LENGTH=
"2"
NOTNULL=
"true"
/>
<FIELD
NAME=
"layout"
TYPE=
"int"
LENGTH=
"10"
/>
<FIELD
NAME=
"template"
TYPE=
"int"
LENGTH=
"1"
DEFAULT=
"0"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
...
...
htdocs/lib/db/upgrade.php
View file @
db4232df
...
...
@@ -1226,6 +1226,9 @@ function xmldb_core_upgrade($oldversion=0) {
execute_sql
(
"ALTER TABLE
{
view
}
ADD COLUMN institution CHARACTER VARYING(255);"
);
execute_sql
(
"ALTER TABLE
{
view
}
ADD CONSTRAINT
{
view_ins_fk
}
FOREIGN KEY (institution) REFERENCES
{
institution
}
(name);"
);
}
if
(
$oldversion
<
2008081101
)
{
execute_sql
(
"ALTER TABLE
{
view
}
ADD COLUMN template SMALLINT NOT NULL DEFAULT 0;"
);
}
return
$status
;
...
...
htdocs/lib/version.php
View file @
db4232df
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
200808110
0
;
$config
->
version
=
200808110
1
;
$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