]> git.ozlabs.org Git - patchwork/commitdiff
Adjust postgres "grant all" script to new name of bundle table
authorJunio C Hamano <gitster@pobox.com>
Tue, 3 Nov 2009 17:17:06 +0000 (09:17 -0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 23 Nov 2009 03:20:02 +0000 (14:20 +1100)
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

index 72e1f3195f516d7a431872a1123f787835c4ee4e..6a1a47dab2c0a6dbe61fcd5e585c89816e685406 100644 (file)
@@ -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,