From: Miloš Mulač Date: Tue, 25 Mar 2008 12:39:09 +0000 (+0000) Subject: original scripts glued into one X-Git-Tag: merge_313_4_after~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=bc06c0562931162c775d66223cf51cec10a6aa61;p=jra1mw.git original scripts glued into one --- diff --git a/org.glite.lb.server/config/glite-lb-migrate_server_db2proxy_server_db b/org.glite.lb.server/config/glite-lb-migrate_db2transactions similarity index 100% rename from org.glite.lb.server/config/glite-lb-migrate_server_db2proxy_server_db rename to org.glite.lb.server/config/glite-lb-migrate_db2transactions diff --git a/org.glite.lb.server/config/glite-lb-migrate_proxy_db2proxy_server_db b/org.glite.lb.server/config/glite-lb-migrate_proxy_db2proxy_server_db deleted file mode 100644 index 25fe402..0000000 --- a/org.glite.lb.server/config/glite-lb-migrate_proxy_db2proxy_server_db +++ /dev/null @@ -1,19 +0,0 @@ -# This script is intendent to be used to extend proxy database to -# to be able to hold both bkserver and lbproxy jobs. -# The operation should be non-destructive, i.e. all data should persist -# and continue to be fully usable. - -#!/bin/bash - - -# add columns for job membership (proxy/server) flags -mysql -u lbserver lbproxy -e "ALTER TABLE jobs ADD proxy bool not null" -mysql -u lbserver lbproxy -e "ALTER TABLE jobs ADD server bool not null" - -# flag all jobs as proxy jobs -mysql -u lbserver lbproxy -e "update jobs set proxy='1'" -mysql -u lbserver lbproxy -e "update jobs set server='0'" - -# something more clever should come here -# - rename DB to lbserver20 -# - or copy all fields to lbserver20 DB