1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#==============================================================
# GNUmed database schema change script
#
# License: GPL v2 or later
# Author: karsten.hilbert@gmx.net
#
#==============================================================
#--------------------------------------------------------------
import os
from Gnumed.pycommon import gmPG2
#--------------------------------------------------------------
def run(conn=None):
gmPG2.file2bytea (
query = u"""
update ref.paperwork_templates
set data = %(data)s::bytea
where name_long = '1 test type plot script (GNUmed default)'
""",
filename = os.path.join('..', 'sql', 'v13-v14', 'data', 'gm2gpl-plot_1_test.scr'),
conn = conn
)
gmPG2.file2bytea (
query = u"""
update ref.paperwork_templates
set data = %(data)s::bytea
where name_long = '2 test types plot script (GNUmed default)'
""",
filename = os.path.join('..', 'sql', 'v13-v14', 'data', 'gm2gpl-plot_2_tests.scr'),
conn = conn
)
return True
#==============================================================
|