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
feb66630
Commit
feb66630
authored
Nov 01, 2006
by
Penny Leach
Browse files
added profile tables, fixed up broken plugin install.xmls and broken
call to them
parent
13c0de8f
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/db/install.xml
View file @
feb66630
...
...
@@ -4,5 +4,39 @@
xsi:noNamespaceSchemaLocation=
"../../lib/xmldb/xmldb.xsd"
>
<TABLES>
<TABLE
NAME=
"artefact_internal_profile"
>
<FIELDS>
<FIELD
NAME=
"user"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"field"
TYPE=
"char"
LENGTH=
"100"
NOTNULL=
"true"
/>
<FIELD
NAME=
"value"
TYPE=
"text"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"user,field"
/>
<KEY
NAME=
"userfk"
TYPE=
"foreign"
FIELDS=
"user"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"artefact_internal_profile_email"
>
<FIELDS>
<FIELD
NAME=
"user"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"email"
TYPE=
"text"
NOTNULL=
"true"
/>
<FIELD
NAME=
"verified"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"primary"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"user,email"
/>
<KEY
NAME=
"userfk"
TYPE=
"foreign"
FIELDS=
"user"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"artefact_internal_profile_icon"
>
<FIELDS>
<FIELD
NAME=
"user"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"filename"
TYPE=
"text"
NOTNULL=
"true"
/>
<FIELD
NAME=
"primary"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"user,filename"
/>
<KEY
NAME=
"userfk"
TYPE=
"foreign"
FIELDS=
"user"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
</TABLES>
</XMLDB>
\ No newline at end of file
htdocs/lib/upgrade.php
View file @
feb66630
...
...
@@ -204,7 +204,7 @@ function upgrade_plugin($upgrade) {
list
(
$plugintype
,
$pluginname
)
=
explode
(
'.'
,
$upgrade
->
name
);
$location
=
get_config
(
'd
ir
root'
)
.
$plugintype
.
'/'
.
$pluginname
.
'/db/'
;
$location
=
get_config
(
'd
oc
root'
)
.
$plugintype
.
'/'
.
$pluginname
.
'/db/'
;
$db
->
StartTrans
();
if
(
!
empty
(
$upgrade
->
install
))
{
...
...
htdocs/notification/emaildigest/db/install.xml
View file @
feb66630
...
...
@@ -16,8 +16,8 @@
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"typefk"
TPE=
"foreign"
FIELDS=
"type"
REFTABLE=
"activity_type"
REFFIELDS=
"name"
/>
<KEY
NAME=
"userfk"
TPE=
"foreign"
FIELDS=
"
type
"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
<KEY
NAME=
"typefk"
T
Y
PE=
"foreign"
FIELDS=
"type"
REFTABLE=
"activity_type"
REFFIELDS=
"name"
/>
<KEY
NAME=
"userfk"
T
Y
PE=
"foreign"
FIELDS=
"
user
"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
</TABLES>
...
...
htdocs/notification/internal/db/install.xml
View file @
feb66630
...
...
@@ -16,8 +16,8 @@
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"typefk"
TPE=
"foreign"
FIELDS=
"type"
REFTABLE=
"activity_type"
REFFIELDS=
"name"
/>
<KEY
NAME=
"userfk"
TPE=
"foreign"
FIELDS=
"
type
"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
<KEY
NAME=
"typefk"
T
Y
PE=
"foreign"
FIELDS=
"type"
REFTABLE=
"activity_type"
REFFIELDS=
"name"
/>
<KEY
NAME=
"userfk"
T
Y
PE=
"foreign"
FIELDS=
"
user
"
REFTABLE=
"usr"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
</TABLES>
...
...
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