0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-10-17 00:44:15 -04:00
Files
gitea/models
zeripath 695e8ae81d Add primary_key to issue_index (#16813) (#16820)
Backport #16813

Make the group_id a primary key in issue_index. This already has an
unique index and therefore is a good candidate for becoming a primary
key.

This PR also changes all other uses of this table to add the group_id as
the primary key.

The migration v192 from #16813 has not been backported but Xorm will
work fine with non-primary keyed tables. If a user on 1.15 wishes to
have the correct schema sooner than 1.16 - they can use gitea doctor
recreate-table issue_index and gitea will recreate the table with the
primary key.

Fix #16802

Signed-off-by: Andrew Thornton art27@cantab.net
2021-08-25 18:10:15 -04:00
..
2021-06-29 22:00:02 +01:00
2021-06-25 16:28:55 +02:00
2021-06-25 16:28:55 +02:00
2021-07-27 09:44:44 +08:00
2021-06-25 12:59:25 -04:00