Skip to content

Commit

Permalink
Update docs/bos/community/indexers.md
Browse files Browse the repository at this point in the history
Co-authored-by: Roshaan Siddiqui <[email protected]>
  • Loading branch information
bucanero and roshaans authored Jul 25, 2023
1 parent 3d9932e commit 3b7b372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/bos/community/indexers.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ CREATE TABLE "indexer_storage" (

This is the database schema that will be used to store the data you specify in `indexingLogic.js`. You can add more tables and columns to this schema as you see fit. They will be created as soon as you create the indexer.

Creating this default table will allow you to use the `context.set` helper method to write data. It takes two arguments: a key argument and a value argument, which will be written to the `key_name` and `value` columns.
Creating this default table will allow you to use the `context.set` helper method to write data. It takes two arguments: a key argument that accepts a string and a value argument, which will be written to the `key_name` and `value` columns.

:::caution Note on schema migration
You are able to update `indexingLogic.js` after you have registered/created your indexer, but you are only allowed to specify `schema.sql` once before you submit your indexer. If you want to update your schema, you will have to create a new indexer.
Expand Down

0 comments on commit 3b7b372

Please sign in to comment.