Skip to content

Commit 06f773d

Browse files
committed
add index function
Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent 3f035f8 commit 06f773d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/methods/v2/translatestate.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ const methods = {
4242

4343
changeColumn: async (driver, [t, c], internals) => {
4444
return driver.changeColumn(t, c, internals.modSchema.c[t][c]);
45+
},
46+
47+
addIndex: async (driver, [t, i], internals) => {
48+
return driver.addIndex(
49+
t,
50+
i,
51+
internals.modSchema.i[t][i].c,
52+
internals.modSchema.i[t][i].u ? true : undefined
53+
);
4554
}
4655
};
4756

0 commit comments

Comments
 (0)