[Rt-commit] rt branch, 4.0/default-setup-database-to-dba, created. rt-4.0.1rc1-13-g0f3ecfa

Alex Vandiver alexmv at bestpractical.com
Mon Jun 6 14:39:06 EDT 2011


The branch, 4.0/default-setup-database-to-dba has been created
        at  0f3ecfaf0e3cfe5aac030aed5efb56bbee61c72c (commit)

- Log -----------------------------------------------------------------
commit 2370ad8c83696fb51a54adff665c4cf947b44e49
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jun 6 14:36:03 2011 -0400

    Default to the configure-time DBA in rt-setup-database

diff --git a/sbin/rt-setup-database.in b/sbin/rt-setup-database.in
index f7ef0a0..1c5b1e8 100755
--- a/sbin/rt-setup-database.in
+++ b/sbin/rt-setup-database.in
@@ -81,7 +81,9 @@ use Getopt::Long;
 
 $| = 1; # unbuffer all output.
 
-my %args;
+my %args = (
+    dba => '@DB_DBA@',
+);
 GetOptions(
     \%args,
     'action=s',

commit 6c6ef5e596ee87e5a31d2256ee682d55dad93ca5
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jun 6 14:38:18 2011 -0400

    Remove places where we now un-necessarily specify --dba

diff --git a/Makefile.in b/Makefile.in
index ce36e75..5c69bda 100755
--- a/Makefile.in
+++ b/Makefile.in
@@ -252,7 +252,7 @@ upgrade-instruct:
 	@echo "Congratulations. RT has been upgraded. You should now check over"
 	@echo "$(CONFIG_FILE) for any necessary site customization. Additionally,"
 	@echo "you should update RT's system database objects by running "
-	@echo "    $(RT_SBIN_PATH)/rt-setup-database --dba $(DB_DBA) --prompt-for-dba-password --action upgrade"
+	@echo "    $(RT_SBIN_PATH)/rt-setup-database --prompt-for-dba-password --action upgrade"
 
 
 upgrade: testdeps config-install dirs files-install fixperms upgrade-instruct
@@ -353,18 +353,18 @@ test-parallel:
 	RT_TEST_PARALLEL=1 $(PERL) "-MApp::Prove" -e 'my $$p = App::Prove->new(); $$p->process_args("-lrj5","--state=slow,save", "t"); $$p->run()'
 
 regression-reset-db: force-dropdb
-	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action init --dba $(DB_DBA) --dba-password ''
+	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action init --dba-password ''
 
 initdb :: initialize-database
 
 initialize-database: 
-	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action init --dba $(DB_DBA) --prompt-for-dba-password
+	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action init --prompt-for-dba-password
 
 dropdb: 
-	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action drop --dba $(DB_DBA) --prompt-for-dba-password
+	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action drop --prompt-for-dba-password
 
 force-dropdb: 
-	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action drop --dba $(DB_DBA) --dba-password '' --force
+	$(PERL) -I$(LOCAL_LIB_PATH) -I$(RT_LIB_PATH) sbin/rt-setup-database --action drop --dba-password '' --force
 
 critic:
 	perlcritic --quiet sbin bin lib

commit 0f3ecfaf0e3cfe5aac030aed5efb56bbee61c72c
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jun 6 14:26:26 2011 -0400

    Make the database upgrade command be explicit

diff --git a/README b/README
index f4f847c..ad959f2 100644
--- a/README
+++ b/README
@@ -160,11 +160,15 @@ GENERAL INSTALLATION
 
           make upgrade
 
-      This will also display the appropriate rt-setup-database command to
-      upgrade your database.  You should back up your database before
-      running this command.  When you run it, you will be prompted for
-      your previous version of RT (such as 3.6.4) so that the appropriate
-      set of database upgrades can be applied.
+      This will also prompt you to upgrade your database by running:
+
+          /opt/rt4/sbin/rt-setup-database \
+              --prompt-for-dba-password --action upgrade
+
+      You should back up your database before running this command.
+      When you run it, you will be prompted for your previous version of
+      RT (such as 3.6.4) so that the appropriate set of database
+      upgrades can be applied.
 
       Finally, clear the Mason cache dir:
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list