aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2021-02-24 15:26:08 +0000
committerStephen Finucane <stephen@that.guru>2021-02-24 15:26:56 +0000
commita51e7cfd95e24d6757a146e9c8e8f3aec44b226c (patch)
tree2e5742d9c039de5ca86ee8697c858f63e66e608c /lib
parent79700f321335a2d7c649eb03932797af521942a0 (diff)
downloadpatchwork-a51e7cfd95e24d6757a146e9c8e8f3aec44b226c.tar
patchwork-a51e7cfd95e24d6757a146e9c8e8f3aec44b226c.tar.gz
lib: Correct PatchComment table
The table is 'patchwork_comment', not 'patchwork_patchcomment'. Correct this. Signed-off-by: Stephen Finucane <stephen@that.guru> Closes: #396 Fixes: 7b967db4 ("lib: Update DB permissions to reflect model changes")
Diffstat (limited to 'lib')
-rw-r--r--lib/sql/grant-all.mysql.sql4
-rw-r--r--lib/sql/grant-all.postgres.sql6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/sql/grant-all.mysql.sql b/lib/sql/grant-all.mysql.sql
index e0314a3..114ba22 100644
--- a/lib/sql/grant-all.mysql.sql
+++ b/lib/sql/grant-all.mysql.sql
@@ -23,7 +23,7 @@ GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_emailoptout TO 'www-data'@loca
GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_event TO 'www-data'@localhost;
GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_patch TO 'www-data'@localhost;
GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_patchchangenotification TO 'www-data'@localhost;
-GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_patchcomment TO 'www-data'@localhost;
+GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_comment TO 'www-data'@localhost;
GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_patchrelation TO 'www-data'@localhost;
GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_patchtag TO 'www-data'@localhost;
GRANT SELECT, UPDATE, INSERT, DELETE ON patchwork_person TO 'www-data'@localhost;
@@ -41,7 +41,7 @@ GRANT INSERT, SELECT ON patchwork_cover TO 'nobody'@localhost;
GRANT INSERT, SELECT ON patchwork_covercomment TO 'nobody'@localhost;
GRANT INSERT, SELECT ON patchwork_event TO 'nobody'@localhost;
GRANT INSERT, SELECT ON patchwork_patch TO 'nobody'@localhost;
-GRANT INSERT, SELECT ON patchwork_patchcomment TO 'nobody'@localhost;
+GRANT INSERT, SELECT ON patchwork_comment TO 'nobody'@localhost;
GRANT INSERT, SELECT ON patchwork_person TO 'nobody'@localhost;
GRANT INSERT, SELECT ON patchwork_series TO 'nobody'@localhost;
GRANT INSERT, SELECT ON patchwork_seriesreference TO 'nobody'@localhost;
diff --git a/lib/sql/grant-all.postgres.sql b/lib/sql/grant-all.postgres.sql
index a3b192b..6000bf3 100644
--- a/lib/sql/grant-all.postgres.sql
+++ b/lib/sql/grant-all.postgres.sql
@@ -24,7 +24,7 @@ GRANT SELECT, UPDATE, INSERT, DELETE ON
patchwork_event,
patchwork_patch,
patchwork_patchchangenotification,
- patchwork_patchcomment,
+ patchwork_comment,
patchwork_patchrelation,
patchwork_patchtag,
patchwork_person,
@@ -55,7 +55,7 @@ GRANT SELECT, UPDATE ON
patchwork_emailconfirmation_id_seq,
patchwork_event_id_seq,
patchwork_patch_id_seq,
- patchwork_patchcomment_id_seq,
+ patchwork_comment_id_seq,
patchwork_patchrelation_id_seq,
patchwork_patchtag_id_seq,
patchwork_person_id_seq,
@@ -74,7 +74,7 @@ GRANT INSERT, SELECT ON
patchwork_cover,
patchwork_covercomment,
patchwork_patch,
- patchwork_patchcomment,
+ patchwork_comment,
patchwork_event,
patchwork_seriesreference
TO "nobody";