Changeset 263
- Timestamp:
- 11/01/03 21:38:33 (5 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
Build.PL (modified) (4 diffs)
-
Changes (modified) (1 diff)
-
lib/OpenGuides.pm (modified) (1 diff)
-
lib/OpenGuides/Utils.pm (modified) (1 diff)
-
wiki.cgi (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Build.PL
r245 r263 97 97 my @answers; 98 98 99 # Database type is speshull - can be one of t wo.99 # Database type is speshull - can be one of three. 100 100 my $dbtype; 101 my $dbtype_qu = "what type of database do you want the site to run on? postgres/mysql ";101 my $dbtype_qu = "what type of database do you want the site to run on? postgres/mysql/sqlite"; 102 102 if ( $skip_config ) { 103 103 $dbtype = $existing_config{dbtype} || "postgres"; … … 109 109 $dbtype =~ s/^\s*//; 110 110 $dbtype =~ s/\s*$//; 111 unless ( $dbtype eq "postgres" or $dbtype eq "mysql" ) { 111 unless ( $dbtype eq "postgres" or $dbtype eq "mysql" 112 or $dbtype eq "sqlite" ) { 112 113 undef $dbtype; 113 114 } … … 117 118 # Check they have the relevant DBD driver installed. 118 119 my %drivers = ( postgres => "DBD::Pg", 119 mysql => "DBD::mysql" ); 120 mysql => "DBD::mysql", 121 sqlite => "DBD::SQLite", 122 ); 120 123 eval "require $drivers{$dbtype}"; 121 124 die "$drivers{$dbtype} is needed to run a $dbtype database" if $@; … … 131 134 my $def = $existing_config{$var} || $qset->{default}; 132 135 my $val = $def; 136 137 if ( $dbtype eq "sqlite" and $var eq "dbname" ) { 138 $qu = "what's the full filename of the SQLite database this site runs on?"; 139 } 140 141 if ( $dbtype eq "sqlite" and 142 ( $var eq "dbuser" or $var eq "dbpass" or $var eq "dbhost" ) 143 ) { 144 print "$var not relevant for SQLite... skipping...\n"; 145 push @answers, { question => $qu, 146 variable => $var, 147 value => "not-used" }; 148 next; 149 } 150 133 151 unless ( $skip_config ) { 134 152 if ( $type eq "y_n" ) { 153 $def = $def ? "y" : "n"; 135 154 $val = Module::Build->y_n("\n$qu ", $def); 136 155 } else { -
trunk/Changes
r261 r263 1 0.28 2 Allow running sites on SQLite databases. 3 Fixed bug with navbar prompt in Build.PL (CPAN RT #3894). 4 1 5 0.27 1 November 2003 2 6 Fixed bug with category/locale indexing - no longer case-sensitive. -
trunk/lib/OpenGuides.pm
r252 r263 4 4 use vars qw( $VERSION ); 5 5 6 $VERSION = '0.2 7';6 $VERSION = '0.28'; 7 7 8 8 =head1 NAME -
trunk/lib/OpenGuides/Utils.pm
r231 r263 59 59 postgres => "Pg", 60 60 mysql => "MySQL", 61 sqlite => "SQLite", # used for testing61 sqlite => "SQLite", 62 62 ); 63 63 -
trunk/wiki.cgi
r252 r263 5 5 6 6 use vars qw( $VERSION ); 7 $VERSION = '0.2 7';7 $VERSION = '0.28'; 8 8 9 9 use CGI qw/:standard/;
