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
03fa3dad
Commit
03fa3dad
authored
Dec 09, 2009
by
Richard Mansfield
Browse files
Add mailssent, mailsbounced columns on new installs and increase length
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
d416c08c
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/db/install.xml
View file @
03fa3dad
...
...
@@ -13,6 +13,8 @@
<FIELD
NAME=
"artefact"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
<FIELD
NAME=
"key"
TYPE=
"char"
LENGTH=
"16"
NOTNULL=
"false"
/>
<FIELD
NAME=
"expiry"
TYPE=
"datetime"
NOTNULL=
"false"
/>
<FIELD
NAME=
"mailssent"
TYPE=
"int"
LENGTH=
"2"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"mailsbounced"
TYPE=
"int"
LENGTH=
"2"
NOTNULL=
"true"
DEFAULT=
"0"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"owner,email"
/>
...
...
htdocs/lib/db/upgrade.php
View file @
03fa3dad
...
...
@@ -1287,14 +1287,14 @@ function xmldb_core_upgrade($oldversion=0) {
if
(
$oldversion
<
2009111200
)
{
$table
=
new
XMLDBTable
(
'artefact_internal_profile_email'
);
$field
=
new
XMLDBField
(
'mailssent'
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
2
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
add_field
(
$table
,
$field
);
}
if
(
$oldversion
<
2009111201
)
{
$table
=
new
XMLDBTable
(
'artefact_internal_profile_email'
);
$field
=
new
XMLDBField
(
'mailsbounced'
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
2
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
add_field
(
$table
,
$field
);
}
...
...
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