mirror of
https://github.com/LemmyNet/lemmy
synced 2024-10-30 15:21:20 +00:00
922ee6a230
* improve admin and mod check * fix clippy * move admin index to existing code * Revert "move admin index to existing code" This reverts commit d0c58d5f4021e1775d0c1d30d8df6c7df87557c4. * third attempt at the migration * fix formatting * rebuild --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2 lines
155 B
SQL
2 lines
155 B
SQL
drop index if exists idx_person_admin;
|
|
create index idx_person_admin on person(admin) where admin; -- allow quickly finding all admins (PersonView::admins) |