From: wbudic Date: Sat, 13 Feb 2021 06:17:55 +0000 (+1100) Subject: alter for pg is not workin. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=677992a57854418a360c5fdae4be67fc7cbe5616;p=LifeLog.git alter for pg is not workin. --- diff --git a/htdocs/cgi-bin/login_ctr.cgi b/htdocs/cgi-bin/login_ctr.cgi index 3a122db..e42d45c 100755 --- a/htdocs/cgi-bin/login_ctr.cgi +++ b/htdocs/cgi-bin/login_ctr.cgi @@ -391,6 +391,7 @@ try{ $changed = 1; } elsif($hasLogTbl && $SCRIPT_RELEASE > $DB_VERSION && $DB_VERSION < 2.2){ + my $t ="BYTE"; $t = "SMALLINT" if Settings::isProgressDB(); $db->do('ALTER TABLE LOG ADD COLUMN "RTF" BYTE default 0');$changed = 1; } elsif($SCRIPT_RELEASE > $DB_VERSION){$changed = 1;}