From f34e08f25546c6283da7d44f1485f8139efd9614 Mon Sep 17 00:00:00 2001
From: Junio C Hamano <gitster@pobox.com>
Date: Tue, 3 Nov 2009 09:17:06 -0800
Subject: Adjust postgres "grant all" script to new name of bundle table

Since c105cb0 (Initial bundle reordering support, 2009-01-29), the
patchwork_bundle_patches table and its associated id sequence does not
exist.  The script to grant appropriate privileges was not updated when
this change was made, and causes the set-up procedure described in
docs/INSTALL to fail.

This change adjust the script to grant appropriate access rights to
match the change in the DB schema.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
---
 lib/sql/grant-all.postgres.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'lib/sql/grant-all.postgres.sql')

diff --git a/lib/sql/grant-all.postgres.sql b/lib/sql/grant-all.postgres.sql
index 72e1f31..6a1a47d 100644
--- a/lib/sql/grant-all.postgres.sql
+++ b/lib/sql/grant-all.postgres.sql
@@ -21,7 +21,7 @@ GRANT SELECT, UPDATE, INSERT, DELETE ON
 	patchwork_userprofile_maintainer_projects,
 	patchwork_project,
 	patchwork_bundle,
-	patchwork_bundle_patches,
+	patchwork_bundlepatch,
 	patchwork_patch,
 	registration_registrationprofile
 TO "www-data";
@@ -37,7 +37,7 @@ GRANT SELECT, UPDATE ON
 	django_content_type_id_seq,
 	django_site_id_seq,
 	patchwork_bundle_id_seq,
-	patchwork_bundle_patches_id_seq,
+	patchwork_bundlepatch_id_seq,
 	patchwork_comment_id_seq,
 	patchwork_patch_id_seq,
 	patchwork_person_id_seq,
-- 
cgit v1.2.3

