Skip to content

Commit 235e216

Browse files
committed
Suppress some warnings from load-units.pl
1 parent 95f2b7a commit 235e216

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

load-units.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# existing data is wiped!
55

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

2326
my $skip_british = 0;
2427
my @todo;

0 commit comments

Comments
 (0)