File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
-- +migrate Up
2
- CREATE INDEX idx_rel_type ON relations (type);
2
+ CREATE INDEX IF NOT EXISTS idx_rel_type ON relations (type);
3
3
4
4
-- +migrate Down
5
5
DROP INDEX IF EXISTS idx_rel_type;
Original file line number Diff line number Diff line change
1
+ -- +migrate Up
2
+ CREATE INDEX IF NOT EXISTS idx_rel_from_asset ON relations (from_asset_id);
3
+ CREATE INDEX IF NOT EXISTS idx_rel_to_asset ON relations (to_asset_id);
4
+
5
+ -- +migrate Down
6
+ DROP INDEX IF EXISTS idx_rel_from_asset;
7
+ DROP INDEX IF EXISTS idx_rel_to_asset;
Original file line number Diff line number Diff line change
1
+ -- +migrate Up
2
+ CREATE INDEX idx_rel_from_asset ON relations (from_asset_id);
3
+ CREATE INDEX idx_rel_to_asset ON relations (to_asset_id);
4
+
5
+ -- +migrate Down
6
+ DROP INDEX IF EXISTS idx_rel_from_asset;
7
+ DROP INDEX IF EXISTS idx_rel_to_asset;
You can’t perform that action at this time.
0 commit comments