The unified diff between revisions [29881737..] and [535bb2a6..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'plugins/postgresql.py'

#
#
# patch "plugins/postgresql.py"
#  from [31cd15378c86802c279a8a976097103ef22c8387]
#    to [f95cb509ba729d6e611c2dc8d53a82321181e1a5]
#
============================================================
--- plugins/postgresql.py	31cd15378c86802c279a8a976097103ef22c8387
+++ plugins/postgresql.py	f95cb509ba729d6e611c2dc8d53a82321181e1a5
@@ -24,9 +24,8 @@ def initialise(library):
 def initialise(library):
 	global cnx
 	cnx = libpq.PQconnectdb(library.config.connect_str)
-	cnx.query("DELETE FROM proktos_urgency")
-	for urgency in library.urgency_to_string:
-		cnx.query("INSERT INTO proktos_urgency (urgency,description) VALUES (%d,%s)" % (urgency, q(library.urgency_to_string[urgency])))
+	if hasattr(library.config, "init_sql_command"):
+		cnx.query(library.config.init_sql_command)

 def finalise(library):
 	return