#3594 schema update issue for 1.30->1.31 update
Closed: Fixed 2 years ago by tkopecek. Opened 2 years ago by arrfab.

When trying to update schema, with the provided /usr/share/doc/koji/docs/schema-update-1.30-1.31.sql file :

psql koji < /usr/share/doc/koji/docs/schema-update-1.30-1.31.sql
BEGIN
ERROR:  syntax error at or near "INCLUDE"
LINE 1: ...sion || '-' || release || '.' || arch || '.rpm')) INCLUDE (i...
                                                             ^
ROLLBACK

FWIW, it's on a RHEL 8 machine, running postgresql-server-10.19-1.module_el8.6.0+1047+4202cf9a.x86_64


(copied from #3595 duplicate) Update https://docs.pagure.org/koji/supported_platforms/ with minimum postgres version. Last sql update used CREATE INDEX INCLUDE option which is present there from PG11, so older dbs can't be updated. We should be aware of such problems.

Metadata Update from @tkopecek:
- Custom field Size adjusted to None

2 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.31.1

2 years ago

Just FYI - it is safe to drop INCLUDE part as a workaround.

Metadata Update from @tkopecek:
- Issue tagged with: testing-ready

2 years ago

Metadata Update from @mfilip:
- Issue tagged with: testing-done

2 years ago

Commit c110569 relates to this ticket

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #3615 Merged 2 years ago