X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fdebbugs-installsql;h=d2aa7a9960164fc38ef234f0165e3fcfc6f11913;hb=2d5809955756b42884e0051733dab2a128b9faf4;hp=ed407eba65b34e2bf66541ba72f8ef5b8751041e;hpb=371ff8b8ac938809bb56ecf63e4a1d8f937d9fa6;p=debbugs.git diff --git a/bin/debbugs-installsql b/bin/debbugs-installsql index ed407eb..d2aa7a9 100755 --- a/bin/debbugs-installsql +++ b/bin/debbugs-installsql @@ -43,7 +43,8 @@ environmental variable (which this option overrides). =item B<--deployment-dir> -Deployment directory (defaults to /usr/share/debbugs/sql/upgrade) +Deployment directory (defaults to /usr/share/debbugs/sql/). This directory +contains an upgrade subdirectory and scripts which perform the upgrade =item B<--debug, -d> @@ -163,6 +164,10 @@ if ($options{current_version}) { } } } elsif ($options{install_version_storage}) { + if ($s->db_version > 1) { + print STDERR "Version storage is already installed, current version is > 1\n"; + exit 1; + } # TODO Check if db_version already exists, and error out $s->sql_file_in_txn($options{deployment_dir}.'/version_storage.sql'); }