From 0aabc33792e746f1950bb56501d51de4bcb182e8 Mon Sep 17 00:00:00 2001 From: ced <> Date: Fri, 29 Dec 2006 07:33:56 +0000 Subject: [PATCH] Migrate hr_timesheet user_id bzr revid: ced-d8a7e81e2a05a6b828db01df087f5e074d350eda --- doc/migrate/3.4.0-4.0.0/post.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/migrate/3.4.0-4.0.0/post.py b/doc/migrate/3.4.0-4.0.0/post.py index 59d712c9a31..ba1c9028f91 100644 --- a/doc/migrate/3.4.0-4.0.0/post.py +++ b/doc/migrate/3.4.0-4.0.0/post.py @@ -72,6 +72,13 @@ password = hasattr(options, 'db_password') and "password=%s" % options.db_passwo db = psycopg.connect('%s %s %s %s %s' % (host, port, name, user, password), serialize=0) cr = db.cursor() +# ---------------------------------------------------------------- # +# move user id from hr_analytic_timesheet to account_analytic_line # +# ---------------------------------------------------------------- # + +cr.execute("UPDATE account_analytic_line SET user_id = hr_analytic_timesheet.user_id FROM hr_analytic_timesheet WHERE hr_analytic_timesheet.line_id = account_analytic_line.id") +cr.commit() + # --------------- # # remove old menu # # --------------- #