Skip to content

Conversation

@chihunmanse
Copy link
Contributor

Pull Request

Thank you for raising a Pull Request. Please follow the instruction.

  • I’ve read CONTRIBUTING.md and followed the guidelines.

Summary

Links (Issue References, etc, if there's any)

@@ -1,10 +1,10 @@
-- public.key_shares definition
-- public.2_key_shares definition
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file will be deleted

});
}

await knex.raw(`
Copy link
Collaborator

@eldenpark eldenpark Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be safer to define this using table.index? (curious your thoughts)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be safer to define this using table.index? (curious)

table.index() doesn’t support WHERE clauses, so it can’t be used to define partial indexes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://knexjs.org/guide/schema-builder.html#index

Looks like we could, see "predicate". But raw SQL is also okay. No action required as of now!

@eldenpark eldenpark merged commit dd48529 into main Dec 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants