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
9839c9ce
Commit
9839c9ce
authored
Sep 12, 2008
by
Nigel McNie
Browse files
Add an upgrade path to delete users based on the improved user_delete function.
parent
ba6a1b34
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
9839c9ce
...
...
@@ -1280,6 +1280,16 @@ function xmldb_core_upgrade($oldversion=0) {
create_table
(
$table
);
}
if
(
$oldversion
<
2008091200
)
{
// Some cleanups for deleted users, based on the new model of handling them
if
(
$userids
=
get_column
(
'usr'
,
'id'
,
'deleted'
,
1
))
{
require_once
(
'user.php'
);
foreach
(
$userids
as
$userid
)
{
delete_user
(
$userid
);
}
}
}
return
$status
;
}
...
...
htdocs/lib/version.php
View file @
9839c9ce
...
...
@@ -27,7 +27,7 @@
defined
(
'INTERNAL'
)
||
die
();
$config
=
new
StdClass
;
$config
->
version
=
200809
08
00
;
$config
->
version
=
200809
12
00
;
$config
->
release
=
'1.1.0alpha2dev'
;
$config
->
minupgradefrom
=
2007080700
;
$config
->
minupgraderelease
=
'0.8.0 (release tag 0.8.0_RELEASE)'
;
...
...
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