X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate2.py;h=e411662c69fd50860c135173ceeda6cacb02c2c2;hb=cd5b29ddfd8de263c085f494b9573d683913f6f3;hp=91fbe4f1f4b3a326901ce21162fa79bb014d3c15;hpb=b1c7475814393c70782179f6b9a49ef4aeabdfc6;p=dak.git diff --git a/dak/dakdb/update2.py b/dak/dakdb/update2.py index 91fbe4f1..e411662c 100755 --- a/dak/dakdb/update2.py +++ b/dak/dakdb/update2.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding=utf8 -# Debian Archive Kit Database Update Script +""" Database Update Script - debversion """ # Copyright © 2008 Michael Casadevall # Copyright © 2008 Roger Leigh @@ -26,17 +26,20 @@ import psycopg2, time ################################################################################ def do_update(self): +vvvvvvvvvvvvvvvvvvvv print "Note: to be able to enable the the PL/Perl (plperl) procedural language, we do" print "need postgresql-plperl-$postgres-version installed. Make sure that this is the" print "case before you continue. Interrupt if it isn't, sleeping 5 seconds now." print "(We need to be database superuser for this to work!)" time.sleep (5) +^^^^^^^^^^^^^^^^^^^^ try: c = self.db.cursor() print "Enabling PL/Perl language" c.execute("CREATE LANGUAGE plperl;") + c.execute("CREATE LANGUAGE plpgsql;") print "Adding debversion type to database."