Merge pull request #56 from atridadl/dev
3.1.7
🚧 Added a room index on the votes table
This commit is contained in:
commit
2513c78ded
2 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@ export const votes = sqliteTable(
|
|||
(table) => {
|
||||
return {
|
||||
unq: unique().on(table.userId, table.roomId),
|
||||
userVoteIdx: index("user_vote_idx").on(table.userId),
|
||||
};
|
||||
}
|
||||
);
|
||||
|
@ -61,7 +62,7 @@ export const logs = sqliteTable(
|
|||
},
|
||||
(table) => {
|
||||
return {
|
||||
userIdx: index("user_idx").on(table.userId),
|
||||
userLogIdx: index("user_log_idx").on(table.userId),
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sprintpadawan",
|
||||
"version": "3.1.6",
|
||||
"version": "3.1.7",
|
||||
"description": "Plan. Sprint. Repeat.",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
|
Loading…
Add table
Reference in a new issue