Skip to content

Commit

Permalink
feat(migrations): add index for relation.type
Browse files Browse the repository at this point in the history
Closes: #27
  • Loading branch information
rynmrtn committed Apr 6, 2024
1 parent e20b8f8 commit 53f9062
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions migrations/postgres/008_rel_type_idx.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- +migrate Up
CREATE INDEX idx_rel_type ON relations (type);

-- +migrate Down
DROP INDEX IF EXISTS idx_rel_type;
5 changes: 5 additions & 0 deletions migrations/sqlite3/006_rel_type_idx.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- +migrate Up
CREATE INDEX idx_rel_type ON relations (type);

-- +migrate Down
DROP INDEX IF EXISTS idx_rel_type;

0 comments on commit 53f9062

Please sign in to comment.