[Rt-commit] [svn] r1726 - in rt: . branches/3.3-TESTING/sbin

autrijus at pallas.eruditorum.org autrijus at pallas.eruditorum.org
Sun Nov 7 09:26:15 EST 2004


Author: autrijus
Date: Sun Nov  7 09:26:14 2004
New Revision: 1726

Modified:
   rt/   (props changed)
   rt/branches/3.3-TESTING/sbin/rt-setup-database.in
Log:
 r10252 at not:  autrijus | 2004-11-06T10:17:41.433720Z
 * "make dropdb" on SQLite now works.
 
 


Modified: rt/branches/3.3-TESTING/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.3-TESTING/sbin/rt-setup-database.in	(original)
+++ rt/branches/3.3-TESTING/sbin/rt-setup-database.in	Sun Nov  7 09:26:14 2004
@@ -217,7 +217,6 @@
 
 # {{{ sub drop_db
 sub drop_db {
-    return if ( $RT::DatabaseType eq 'SQLite' );
     if ( $RT::DatabaseType eq 'Oracle' ) {
         print <<END;
 
@@ -241,6 +240,10 @@
 
     print "Dropping $RT::DatabaseType database $RT::DatabaseName.\n";
 
+    if ( $RT::DatabaseType eq 'SQLite' ) {
+	unlink $RT::DatabaseName or warn $!;
+	return;
+    }
     $dbh->do("Drop DATABASE $RT::DatabaseName") or warn $DBI::errstr;
 }
 


More information about the Rt-commit mailing list