]> git.ipfire.org Git - thirdparty/patchwork.git/commit
lib: fix table names
authorAli Alnubani <alialnu@nvidia.com>
Sun, 24 Apr 2022 20:59:35 +0000 (23:59 +0300)
committerStephen Finucane <stephen@that.guru>
Tue, 10 May 2022 18:25:33 +0000 (19:25 +0100)
commit12cd2a89e7147559746616a6cf1faf980de9d24f
treea810f7a5e9d923890633a9828aa387628de81179
parentf8cbc778a23698b920caf286ac3fb13da8d82406
lib: fix table names

Migration 0042 (introduced in 0686a73) renamed the "Comment" model
to "PatchComment", and some of the table names changed in a51e7cf
were already correct.

This reverts a51e7cf and removes a nonexistent table name to resolve
the following error:

  $ psql -f lib/sql/grant-all.postgres.sql DATABASE_NAME
  BEGIN
  psql:lib/sql/grant-all.postgres.sql:38: ERROR:  relation
    "patchwork_comment" does not exist

Fixes: a51e7cfd95e2 ("lib: Correct PatchComment table")
Fixes: 7b967db4e12f ("lib: Update DB permissions to reflect model changes")
Cc: stephen@that.guru
Closes: #396
Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
(cherry picked from commit 5b53f46def5fc4961bfa77a8abb3e968ae839c59)
lib/sql/grant-all.mysql.sql
lib/sql/grant-all.postgres.sql