We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95f2b7a commit 235e216Copy full SHA for 235e216
1 file changed
load-units.pl
@@ -4,6 +4,7 @@
4
# existing data is wiped!
5
6
use utf8;
7
+use open ":std", ":encoding(UTF-8)";
8
use strict;
9
use warnings;
10
use DBD::Pg;
@@ -17,8 +18,10 @@
17
18
) || die "PG connection failed";
19
$dbh->do("SET synchronous_commit = off");
20
$dbh->do("TRUNCATE unit_prefixes, unit_units");
21
+$dbh->do("SET client_min_messages = 'error'");
22
$dbh->do("ALTER TABLE unit_prefixes ADD COLUMN IF NOT EXISTS ordering serial"); # add temp column to preserve load ordering for dumping
23
$dbh->do("ALTER TABLE unit_units ADD COLUMN IF NOT EXISTS ordering serial");
24
+$dbh->do("RESET client_min_messages");
25
26
my $skip_british = 0;
27
my @todo;
0 commit comments