mirror of
https://github.com/multica-ai/multica.git
synced 2026-06-17 03:38:32 +02:00
Add index on "user".created_at
Adds migration 119 creating idx_user_created_at on "user"(created_at) using CREATE INDEX CONCURRENTLY, matching the repo convention for index-only migrations (114/115). Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
1
server/migrations/119_user_created_at_index.down.sql
Normal file
1
server/migrations/119_user_created_at_index.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP INDEX CONCURRENTLY IF EXISTS idx_user_created_at;
|
||||
8
server/migrations/119_user_created_at_index.up.sql
Normal file
8
server/migrations/119_user_created_at_index.up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Index on "user".created_at to support ordering/filtering users by signup time.
|
||||
--
|
||||
-- "user" is a reserved word so it stays double-quoted. The migration runner
|
||||
-- executes files outside an explicit transaction, so CONCURRENTLY is kept in
|
||||
-- its own single-statement migration to avoid Postgres' implicit transaction
|
||||
-- block for multi-statement query strings.
|
||||
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_user_created_at
|
||||
ON "user" (created_at);
|
||||
Reference in New Issue
Block a user