Add partial index on SQLite

This commit is contained in:
Luc Didry
2018-04-07 12:11:27 +02:00
parent 163a1e2a66
commit 4f39a86b0a
+4
View File
@@ -21,3 +21,7 @@ DROP TABLE lutim;
-- 2 up
ALTER TABLE lutim ADD COLUMN iv TEXT;
-- 2 down
-- 3 up
CREATE INDEX IF NOT EXISTS empty_short_idx ON lutim (short) WHERE path IS NULL;
-- 3 down
DROP INDEX empty_short_idx;