Skip to content

Use an existing table? #203

Answered by mobsense
RyanHow asked this question in Q&A
Nov 19, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

You don't call updateTable either. create/delete/update table are for making actual changes to the table keys.

If you want to create or delete GSIs, then use updateTable. and yes, you could do that in a migration.

For normal operation, OneTable reads the keys from the table to determine the key structure. Also, your schema should include the keys in the {indexes} section. These should (must) match the actual keys.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@RyanHow
Comment options

Comment options

You must be logged in to vote
1 reply
@RyanHow
Comment options

Answer selected by RyanHow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #202 on November 19, 2021 01:57.