Skip to content

Conversation

alialnu
Copy link
Contributor

@alialnu alialnu commented Apr 24, 2022

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: a51e7cf ("lib: Correct PatchComment table")
Fixes: 7b967db ("lib: Update DB permissions to reflect model changes")
Cc: [email protected]

Closes: #396

Signed-off-by: Ali Alnubani [email protected]

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: a51e7cf ("lib: Correct PatchComment table")
Fixes: 7b967db ("lib: Update DB permissions to reflect model changes")
Cc: [email protected]

Closes: getpatchwork#396

Signed-off-by: Ali Alnubani <[email protected]>
@stephenfin stephenfin merged commit 5b53f46 into getpatchwork:master May 10, 2022
@stephenfin
Copy link
Member

Backported to stable/3.0. This should get picked up in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v3] nonexistent relation in lib/sql/grant-all.postgres.sql

2 participants