Skip to content

Commit

Permalink
Suppress some warnings from load-units.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed May 17, 2022
1 parent 95f2b7a commit 235e216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions load-units.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# existing data is wiped!

use utf8;
use open ":std", ":encoding(UTF-8)";
use strict;
use warnings;
use DBD::Pg;
Expand All @@ -17,8 +18,10 @@
) || die "PG connection failed";
$dbh->do("SET synchronous_commit = off");
$dbh->do("TRUNCATE unit_prefixes, unit_units");
$dbh->do("SET client_min_messages = 'error'");
$dbh->do("ALTER TABLE unit_prefixes ADD COLUMN IF NOT EXISTS ordering serial"); # add temp column to preserve load ordering for dumping
$dbh->do("ALTER TABLE unit_units ADD COLUMN IF NOT EXISTS ordering serial");
$dbh->do("RESET client_min_messages");

my $skip_british = 0;
my @todo;
Expand Down

0 comments on commit 235e216

Please sign in to comment.