blob: 9a9e6263fe024c1f0b07be923c38d84a28f0a396 (
plain) (
blame)
1
2
3
4
5
|
-- Add migration script here
alter table history add column if not exists deleted_at timestamp;
-- queries will all be selecting the ids of history for a user, that has been deleted
create index if not exists history_deleted_index on history(client_id, user_id, deleted_at);
|