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-01-28 23:58:33 +01:00
2021-02-20 15:02:39 +01:00
2021-01-29 23:52:13 +08:00
2021-02-11 18:32:25 +01:00
2021-03-24 19:27:22 +01:00
2021-03-24 19:27:22 +01:00
2021-04-08 18:25:57 -04:00
2021-04-14 14:02:12 +02:00
2021-06-23 17:12:38 -04:00
2021-06-23 17:12:38 -04:00
2021-06-25 16:28:55 +02:00