mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-22 23:31:33 +00:00
9 lines
410 B
SQL
9 lines
410 B
SQL
-- Copyright 2026 Beacon Contributors
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-- RunMigrations executes this single statement outside an explicit transaction.
|
|
-- If interrupted, check pg_index.indisvalid and remove this named index before
|
|
-- retrying; do not silently accept an invalid index with IF NOT EXISTS.
|
|
CREATE INDEX CONCURRENTLY idx_channels_last_seen_id
|
|
ON channels (last_seen DESC, id DESC);
|