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
a8d56b68
Commit
a8d56b68
authored
Jun 29, 2007
by
Donal McMullan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Database and upgrade stuff
parent
3201f1bd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
27 deletions
+35
-27
htdocs/auth/imap/version.php
htdocs/auth/imap/version.php
+2
-2
htdocs/auth/internal/version.php
htdocs/auth/internal/version.php
+1
-1
htdocs/auth/xmlrpc/version.php
htdocs/auth/xmlrpc/version.php
+1
-1
htdocs/lib/db/install.xml
htdocs/lib/db/install.xml
+16
-16
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+14
-6
htdocs/lib/version.php
htdocs/lib/version.php
+1
-1
No files found.
htdocs/auth/imap/version.php
View file @
a8d56b68
...
...
@@ -27,9 +27,9 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
20070
501
00
;
$config
->
version
=
20070
629
00
;
$config
->
release
=
'0.1'
;
$config
->
requires_config
=
1
;
$config
->
requires_parent
=
0
;
?>
\ No newline at end of file
?>
htdocs/auth/internal/version.php
View file @
a8d56b68
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
200
61018
00
;
$config
->
version
=
200
70629
00
;
$config
->
release
=
'0.1'
;
$config
->
requires_config
=
0
;
$config
->
requires_parent
=
0
;
...
...
htdocs/auth/xmlrpc/version.php
View file @
a8d56b68
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
20070
410
00
;
$config
->
version
=
20070
629
00
;
$config
->
release
=
'0.1'
;
$config
->
requires_config
=
1
;
$config
->
requires_parent
=
1
;
...
...
htdocs/lib/db/install.xml
View file @
a8d56b68
...
...
@@ -52,22 +52,6 @@
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"name"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"sso_session"
>
<FIELDS>
<FIELD
NAME=
"userid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"instanceid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"username"
TYPE=
"char"
LENGTH=
"30"
NOTNULL=
"true"
/>
<FIELD
NAME=
"useragent"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
/>
<FIELD
NAME=
"token"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
/>
<FIELD
NAME=
"confirmtimeout"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"expires"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"sessionid"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"userid"
/>
<KEY
NAME=
"userfk"
TYPE=
"foreign"
FIELDS=
"userid,username"
REFTABLE=
"usr"
REFFIELDS=
"userid,username"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"auth_instance"
>
<FIELDS>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"true"
/>
...
...
@@ -139,6 +123,22 @@
<INDEX
NAME=
"usernameuk"
UNIQUE=
"true"
FIELDS=
"username,authinstance"
/>
</INDEXES>
</TABLE>
<TABLE
NAME=
"sso_session"
>
<FIELDS>
<FIELD
NAME=
"userid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"instanceid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"username"
TYPE=
"char"
LENGTH=
"30"
NOTNULL=
"true"
/>
<FIELD
NAME=
"useragent"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
/>
<FIELD
NAME=
"token"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
/>
<FIELD
NAME=
"confirmtimeout"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"expires"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"sessionid"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"userid"
/>
<!-- <KEY NAME="userfk" TYPE="foreign" FIELDS="userid,username" REFTABLE="usr" REFFIELDS="userid,username" /> -->
</KEYS>
</TABLE>
<TABLE
NAME=
"event_type"
>
<FIELDS>
<FIELD
NAME=
"name"
TYPE=
"char"
LENGTH=
"50"
NOTNULL=
"true"
/>
...
...
htdocs/lib/db/upgrade.php
View file @
a8d56b68
...
...
@@ -280,9 +280,9 @@ function xmldb_core_upgrade($oldversion=0) {
create_table
(
$table
);
$table
=
new
XMLDBTable
(
'auth_installed'
);
$field
=
new
XMLDBField
(
'name'
);
$field
->
setAttributes
(
XMLDB_TYPE_CHAR
,
100
,
null
,
true
,
null
,
null
,
null
);
change_field_precision
(
$table
,
$field
);
//
$field = new XMLDBField('name');
//
$field->setAttributes(XMLDB_TYPE_CHAR, 100, null, true, null, null, null);
//
change_field_precision($table, $field);
$field
=
new
XMLDBField
(
'requires_config'
);
$field
->
setAttributes
(
XMLDB_TYPE_INTEGER
,
1
,
XMLDB_UNSIGNED
,
XMLDB_NOTNULL
,
null
,
null
,
null
,
0
);
...
...
@@ -362,9 +362,10 @@ function xmldb_core_upgrade($oldversion=0) {
$table
->
addKeyInfo
(
'primary'
,
XMLDB_KEY_PRIMARY
,
array
(
'userid'
,
'instanceid'
));
create_table
(
$table
);
$key
=
new
XMLDBKey
(
"userfk"
);
$key
->
setAttributes
(
XMLDB_KEY_FOREIGN
,
array
(
'userid'
,
'username'
),
'usr'
,
array
(
'id'
,
'username'
));
add_key
(
$table
,
$key
);
//$table = new XMLDBTable('sso_session');
//$key = new XMLDBKey("userfk");
//$key->setAttributes(XMLDB_KEY_FOREIGN, array('userid','username'), 'usr', array('id','username'));
//add_key($table, $key);
$table
=
new
XMLDBTable
(
'usr'
);
$field
=
new
XMLDBField
(
'authinstance'
);
...
...
@@ -389,6 +390,13 @@ function xmldb_core_upgrade($oldversion=0) {
$key
=
new
XMLDBKey
(
"lastauthinstancefk"
);
$key
->
setAttributes
(
XMLDB_KEY_FOREIGN
,
array
(
'lastauthinstance'
),
'auth_instance'
,
array
(
'id'
));
add_key
(
$table
,
$key
);
$record
=
new
stdClass
();
$record
->
instancename
=
'internal'
;
$record
->
priority
=
'1'
;
$record
->
institution
=
'mahara'
;
$record
->
authname
=
'internal'
;
// insert_record('auth_instance',$record);
}
...
...
htdocs/lib/version.php
View file @
a8d56b68
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
2007062
0
00
;
$config
->
version
=
2007062
9
00
;
$config
->
release
=
'0.8.0.dev'
;
$config
->
minupgradefrom
=
2007011600
;
$config
->
minupgraderelease
=
'0.4.0 (build tag BUILD_20070122)'
;
...
...
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