X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fcats%2Fupdate_postgresql_tables.in;h=f99fd083ff605a284aa90da979f83fadef6ae46d;hb=f5984fe3b5fe567e1609078ed5966f4d0428f0a7;hp=88d4ed00d4fd976887ae766b01580451052bd4b4;hpb=4583699daea78d7c4828d727237fa29aa686bf50;p=bacula%2Fbacula diff --git a/bacula/src/cats/update_postgresql_tables.in b/bacula/src/cats/update_postgresql_tables.in old mode 100755 new mode 100644 index 88d4ed00d4..f99fd083ff --- a/bacula/src/cats/update_postgresql_tables.in +++ b/bacula/src/cats/update_postgresql_tables.in @@ -1,52 +1,77 @@ #!/bin/sh # -# Shell script to update PostgreSQL tables from version 1.38 to 1.39 +# Shell script to update PostgreSQL tables from version 11 to 12 # echo " " -echo "This script will update a Bacula PostgreSQL database from version 9 to 9" -echo "Depending on the size of your database," -echo "this script may take several minutes to run." +echo "This script will update a Bacula PostgreSQL database from version 11 to 12" +echo " which is needed to convert from Bacula Enterprise 2.6 to 4.0 or " +echo " Standard version 3.0 to 5.0" echo " " + bindir=@SQL_BINDIR@ +PATH="$bindir:$PATH" +db_name=@db_name@ + +if psql -f - -d ${db_name} $* <