[Rt-commit] r2157 - in rt/branches/PLATANO-EXPERIMENTAL: . etc/upgrade/3.3.0 etc/upgrade/3.3.11 sbin

jesse at bestpractical.com jesse at bestpractical.com
Wed Feb 2 11:00:45 EST 2005


Author: jesse
Date: Wed Feb  2 11:00:44 2005
New Revision: 2157

Added:
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.0/content
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.Oracle
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.Pg
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.SQLite
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.mysql
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/content
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/schema.Oracle
   rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/schema.SQLite
Modified:
   rt/branches/PLATANO-EXPERIMENTAL/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL/sbin/rt-setup-database.in
Log:
 r4014 at hualien:  jesse | 2005-02-02T15:40:34.961988Z
  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/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.0/content
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.0/content	Wed Feb  2 11:00:44 2005
@@ -0,0 +1 @@
+1;

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.Oracle
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.Oracle	Wed Feb  2 11:00:44 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.Pg
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.Pg	Wed Feb  2 11:00:44 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.SQLite
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.SQLite	Wed Feb  2 11:00:44 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.mysql
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/acl.mysql	Wed Feb  2 11:00:44 2005
@@ -0,0 +1,4 @@
+sub acl {
+    return ();
+}
+1;

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/content
==============================================================================
--- (empty file)
+++ rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/content	Wed Feb  2 11:00:44 2005
@@ -0,0 +1 @@
+1;

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/schema.Oracle
==============================================================================

Added: rt/branches/PLATANO-EXPERIMENTAL/etc/upgrade/3.3.11/schema.SQLite
==============================================================================

Modified: rt/branches/PLATANO-EXPERIMENTAL/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL/sbin/rt-setup-database.in	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL/sbin/rt-setup-database.in	Wed Feb  2 11:00:44 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