pastebin/migrations/2019-09-23-120726_delete-at-partial-index/up.sql

3 lines
97 B
MySQL
Raw Normal View History

DROP INDEX pastes_delete_at_idx;
CREATE INDEX ON pastes (delete_at) WHERE delete_at IS NOT NULL;