[Rt-commit] rt branch, rt-at-a-glance-renames, updated. rt-3.9.7-891-g065e3ed
Shawn Moore
sartak at bestpractical.com
Wed Dec 15 23:48:22 EST 2010
The branch, rt-at-a-glance-renames has been updated
via 065e3ed479cfa0a4ab118b8f2fea0dafd12bff28 (commit)
from 307a4783273b75bbe3d355a423a90be8bb1788ab (commit)
Summary of changes:
etc/upgrade/3.9.9/content | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
create mode 100644 etc/upgrade/3.9.9/content
- Log -----------------------------------------------------------------
commit 065e3ed479cfa0a4ab118b8f2fea0dafd12bff28
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Wed Dec 15 23:47:25 2010 -0500
Upgrade script for user prefs
diff --git a/etc/upgrade/3.9.9/content b/etc/upgrade/3.9.9/content
new file mode 100644
index 0000000..273bf95
--- /dev/null
+++ b/etc/upgrade/3.9.9/content
@@ -0,0 +1,15 @@
+ at Initial = (
+ sub {
+ my $users = RT::Users->new(RT->SystemUser);
+ $users->UnLimit;
+
+ while (my $user = $users->Next) {
+ my $settings = $user->Preferences('HomepageSettings')
+ or next;
+ $settings->{sidebar} = delete $settings->{summary};
+ $user->SetPreferences('HomepageSettings', $settings);
+ }
+ },
+);
+
+
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list