[Rt-commit] r2119 - in rt/branches/3.4-RELEASE: . etc/upgrade/3.3.0 etc/upgrade/3.3.11 sbin

jesse at bestpractical.com jesse at bestpractical.com
Sat Jan 22 06:26:16 EST 2005


Author: jesse
Date: Sat Jan 22 06:26:14 2005
New Revision: 2119

Added:
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.0/content
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.Oracle
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.Pg
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.SQLite
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.mysql
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/content
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/schema.Oracle
   rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/schema.SQLite
Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/sbin/rt-setup-database.in
Log:
 r3902 at hualien:  jesse | 2005-01-22T11:21:43.212477Z
 RT-Ticket: 6366
 RT-Update: correspond
 
 Cleaned up the upgrade procedure to give better messages on success. Added content so it won't bomb out on errors for the 3.4 upgrades.
 (We could have altered the script to not error out on missing content, but that would obscure errors where the user flubbed the path.
 
 


Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.0/content
==============================================================================
--- (empty file)
+++ rt/branches/3.4-RELEASE/etc/upgrade/3.3.0/content	Sat Jan 22 06:26:14 2005
@@ -0,0 +1 @@
+1;

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.Oracle
==============================================================================
--- (empty file)
+++ rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.Oracle	Sat Jan 22 06:26:14 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.Pg
==============================================================================
--- (empty file)
+++ rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.Pg	Sat Jan 22 06:26:14 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.SQLite
==============================================================================
--- (empty file)
+++ rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.SQLite	Sat Jan 22 06:26:14 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.mysql
==============================================================================
--- (empty file)
+++ rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/acl.mysql	Sat Jan 22 06:26:14 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/content
==============================================================================
--- (empty file)
+++ rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/content	Sat Jan 22 06:26:14 2005
@@ -0,0 +1 @@
+1;

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/schema.Oracle
==============================================================================

Added: rt/branches/3.4-RELEASE/etc/upgrade/3.3.11/schema.SQLite
==============================================================================

Modified: rt/branches/3.4-RELEASE/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.4-RELEASE/sbin/rt-setup-database.in	(original)
+++ rt/branches/3.4-RELEASE/sbin/rt-setup-database.in	Sat Jan 22 06:26:14 2005
@@ -211,7 +211,7 @@
     else {
         die "Couldn't find schema file for " . $RT::DatabaseType . "\n";
     }
-    print "schema sucessfully inserted\n";
+    print "Done setting up database schema.\n";
 
 }
 
@@ -278,20 +278,19 @@
 # }}}
 
 sub get_dba_password {
-    print
-"In order to create a new database and grant RT access to that database,\n";
+    print "In order to create or update your RT database,";
     print "this script needs to connect to your "
       . $RT::DatabaseType
       . " instance on "
       . $RT::DatabaseHost . " as "
       . $args{'dba'} . ".\n";
-    print
-"Please specify that user's database password below. If the user has no database\n";
+    print "Please specify that user's database password below. If the user has no database\n";
     print "password, just press return.\n\n";
     print "Password: ";
     ReadMode('noecho');
     my $password = ReadLine(0);
     ReadMode('normal');
+    print "\n";
     return ($password);
 }
 
@@ -343,6 +342,7 @@
             die "Problem with statement:\n $statement\n" . $sth->errstr;
         }
     }
+    print "Done setting up database ACLs.\n";
 }
 
 # }}}
@@ -442,6 +442,7 @@
                              ObjectType    => 'RT::System',
                              ObjectId      => '1' );
 
+        print "done.\n";
     }
 
     # Slurp in stuff to insert from the datafile. Possible things to go in here:-
@@ -615,7 +616,7 @@
         print "done.\n";
     }
     $RT::Handle->Disconnect() unless ($RT::DatabaseType eq 'SQLite');
-
+    print "Done setting up database content.\n";
 }
 
 =head2 ACLEquivGroupId


More information about the Rt-commit mailing list