add index for status and updated_at columns on user table
This commit is contained in:
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;
|
||||
Reference in New Issue
Block a user