mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add index for status and updated_at columns on user table
This commit is contained in:
parent
747038ec0d
commit
d3d3dd9458
2 changed files with 18 additions and 0 deletions
9
packages/db/migrations/0141.do.add_index_for_cleanup_to_user.sql
Executable file
9
packages/db/migrations/0141.do.add_index_for_cleanup_to_user.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: DO
|
||||
-- Name: add_index_for_cleanup_to_user
|
||||
-- Description: Add index of status and updated_at to omnivore.user table for cleanup of deleted users
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS user_status_updated_at_idx ON omnivore.user (status, updated_at);
|
||||
|
||||
COMMIT;
|
||||
9
packages/db/migrations/0141.undo.add_index_for_cleanup_to_user.sql
Executable file
9
packages/db/migrations/0141.undo.add_index_for_cleanup_to_user.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: add_index_for_cleanup_to_user
|
||||
-- Description: Add index of status and updated_at to omnivore.user table for cleanup of deleted users
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP INDEX IF EXISTS user_status_updated_at_idx;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue